From: Michael J. Rubinsky Date: Wed, 20 Oct 2010 17:52:24 +0000 (-0400) Subject: Get an array back from json_decode here. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=2e8024fa8386ef02331ef6fea4840dc17bedf7b5;p=horde.git Get an array back from json_decode here. --- diff --git a/turba/lib/Turba.php b/turba/lib/Turba.php index c336b1a32..9a400ba42 100644 --- a/turba/lib/Turba.php +++ b/turba/lib/Turba.php @@ -598,7 +598,7 @@ class Turba { /* Add the new addressbook to the user's list of visible address * books. */ - $prefs = json_decode($GLOBALS['prefs']->getValue('addressbooks')); + $prefs = json_decode($GLOBALS['prefs']->getValue('addressbooks'), true); if (!is_array($prefs) || array_search($share_id, $prefs) === false) { $prefs[] = $share_id; $GLOBALS['prefs']->setValue('addressbooks', json_encode($prefs));