Accept empty array for decodeJSON
This commit is contained in:
@@ -164,8 +164,12 @@
|
||||
|
||||
$obj = $this->decodeJSON($raw, 1);
|
||||
|
||||
if(is_array($obj)) {
|
||||
return $obj;
|
||||
}
|
||||
|
||||
if(!$obj) {
|
||||
$this->e("Invalid JSON '$file'");
|
||||
$this->e("Invalid JSON file '$file'");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user