From 03813edd5fe506288dc4a64a79260b2bec6a7950 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 12 May 2010 16:36:50 +0200 Subject: [PATCH] Missed adding a json_decode(). --- turba/lib/Turba.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.11.0