Skip to content

A free, self-hostable news aggregator…

json_decode fallback bug 2

Alexandre Alapetitebd47d14a536f
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);
}
}