diff options
| author | 2016-02-24 21:20:37 +0100 | |
|---|---|---|
| committer | 2016-02-24 21:20:37 +0100 | |
| commit | bd47d14a536fee657a3ba2f7cfba9921567356b2 (patch) | |
| tree | 7980c469d6c0fccc956be45f8b0be73a618c60ea /lib/lib_rss.php | |
| parent | 9adbd2ba9bfe885a4ccf4ec6ad99929e89cf6fb6 (diff) | |
json_decode fallback bug 2
Diffstat (limited to 'lib/lib_rss.php')
| -rw-r--r-- | lib/lib_rss.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lib_rss.php b/lib/lib_rss.php index e74b26e3f..a09960de0 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -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); } } |
