From: Jan Schneider Date: Wed, 12 May 2010 14:36:50 +0000 (+0200) Subject: Missed adding a json_decode(). X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=03813edd5fe506288dc4a64a79260b2bec6a7950;p=horde.git Missed adding a json_decode(). --- diff --git a/turba/lib/Turba.php b/turba/lib/Turba.php index a468495aa..e13f76397 100644 --- a/turba/lib/Turba.php +++ b/turba/lib/Turba.php @@ -583,7 +583,7 @@ class Turba { /* Add the new addressbook to the user's list of visible address * books. */ - $prefs = $GLOBALS['prefs']->getValue('addressbooks'); + $prefs = json_decode($GLOBALS['prefs']->getValue('addressbooks')); if (array_search($share_id, $prefs) === false) { $prefs[] = $share_id; $GLOBALS['prefs']->setValue('addressbooks', json_encode($prefs));