mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-21 18:54:39 -04:00
json_decode fallback bug 2
This commit is contained in:
1 parent
9adbd2ba9b
commit
bd47d14a53
1 file changed
+2
-2
+2
-2
@@ -1,9 +1,9 @@
|
||||
<?php
|
||||
if (!function_exists('json_decode')) {
|
||||
require_once('JSON.php');
|
||||
function json_decode($var, $assoc) {
|
||||
function json_decode($var, $assoc = false) {
|
||||
$JSON = new Services_JSON($assoc ? SERVICES_JSON_LOOSE_TYPE : 0);
|
||||
return $JSON->decode($var, $assoc);
|
||||
return $JSON->decode($var);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user