projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20a958b
)
Get an array back from json_decode here.
author
Michael J. Rubinsky
<mrubinsk@horde.org>
Wed, 20 Oct 2010 17:52:24 +0000
(13:52 -0400)
committer
Michael J. Rubinsky
<mrubinsk@horde.org>
Wed, 20 Oct 2010 17:54:05 +0000
(13:54 -0400)
turba/lib/Turba.php
patch
|
blob
|
history
diff --git
a/turba/lib/Turba.php
b/turba/lib/Turba.php
index
c336b1a
..
9a400ba
100644
(file)
--- 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));