From 9c1afbca92af650a216ea39de1fe75278eeae418 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Fri, 25 Jul 2014 22:05:44 +0200 Subject: support php versions without json support and show a warning message --- graph.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'graph.php') diff --git a/graph.php b/graph.php index 2c3f6e6..6206d73 100644 --- a/graph.php +++ b/graph.php @@ -35,7 +35,7 @@ if ($plugin == 'aggregation') { } # plugin json -if (file_exists('plugin/'.$plugin.'.json')) { +if (function_exists('json_decode') && file_exists('plugin/'.$plugin.'.json')) { $json = file_get_contents('plugin/'.$plugin.'.json'); $plugin_json = json_decode($json, true); -- cgit v1.1