Accept empty array for decodeJSON

This commit is contained in:
cmp167
2023-12-31 07:43:52 +12:00
parent 1a837f46dd
commit 3ee13c2670

View File

@@ -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;
}