fixed not detected JSON in array not object syntax

This commit is contained in:
Ralf Becker 2014-06-26 13:44:31 +00:00
parent e0a0708a64
commit 174e0c1e15

View File

@ -304,7 +304,7 @@ class config
protected static function unserialize($str)
{
// handling of new json-encoded arrays
if ($str[0] == '{' && $str[0] != '[')
if ($str[0] == '{' || $str[0] == '[')
{
return json_decode($str, true);
}