From 18552d0929fc4882362e1306be055a0fcebd0357 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Tue, 21 Sep 2010 16:41:04 +0200 Subject: [PATCH] search_sources pref is json encoded (Bug #9252). --- kronolith/lib/FreeBusy.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kronolith/lib/FreeBusy.php b/kronolith/lib/FreeBusy.php index e258b9af6..1feb14994 100644 --- a/kronolith/lib/FreeBusy.php +++ b/kronolith/lib/FreeBusy.php @@ -254,8 +254,10 @@ class Kronolith_FreeBusy */ public static function getUrl($email) { - $sources = $GLOBALS['prefs']->getValue('search_sources'); - $sources = empty($sources) ? array() : explode("\t", $sources); + $sources = json_decode($GLOBALS['prefs']->getValue('search_sources')); + if (empty($sources)) { + $sources = array(); + } try { $result = $GLOBALS['registry']->call('contacts/getField', -- 2.11.0