forked from extern/egroupware
fixed not detected JSON in array not object syntax
This commit is contained in:
parent
e0a0708a64
commit
174e0c1e15
@ -304,7 +304,7 @@ class config
|
|||||||
protected static function unserialize($str)
|
protected static function unserialize($str)
|
||||||
{
|
{
|
||||||
// handling of new json-encoded arrays
|
// handling of new json-encoded arrays
|
||||||
if ($str[0] == '{' && $str[0] != '[')
|
if ($str[0] == '{' || $str[0] == '[')
|
||||||
{
|
{
|
||||||
return json_decode($str, true);
|
return json_decode($str, true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user