diff options
author | Urban Müller | 2025-05-12 16:47:29 +0200 |
---|---|---|
committer | Urban Müller | 2025-05-12 16:47:29 +0200 |
commit | 9f2456c3e8122f739cee7d2654fd62a5d8931d8c (patch) | |
tree | b0cd7cfd07d6f588a89ed53690d0adfc125a6ac2 | |
parent | f2225077d7450ea08f40ea45cc348184f1d30b97 (diff) | |
download | itools-9f2456c3e8122f739cee7d2654fd62a5d8931d8c.tar.gz itools-9f2456c3e8122f739cee7d2654fd62a5d8931d8c.tar.bz2 itools-9f2456c3e8122f739cee7d2654fd62a5d8931d8c.zip |
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1266,7 +1266,7 @@ static function json_encode($data, $p = []) */ static function json_decode($json, $p = []) { - return ($data = json_decode($json, $p['assoc'])) === null && trim($json) != 'null' ? it::error((array)$p['it_error'] + ['title' => "invalid json: " . json_last_error(), 'body' => $json]) : $data; + return ($data = json_decode($json, $p['assoc'])) === null && trim($json) != 'null' ? it::error((array)$p['it_error'] + ['title' => "invalid json: " . json_last_error_msg(), 'body' => $json]) : $data; } /** |