From: Jan Schneider Date: Tue, 21 Sep 2010 14:41:04 +0000 (+0200) Subject: search_sources pref is json encoded (Bug #9252). X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=18552d0929fc4882362e1306be055a0fcebd0357;p=horde.git search_sources pref is json encoded (Bug #9252). --- 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',