aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/graph.php
diff options
context:
space:
mode:
authorPim van den Berg2014-07-25 22:05:44 +0200
committerPim van den Berg2014-07-25 22:05:44 +0200
commit9c1afbca92af650a216ea39de1fe75278eeae418 (patch)
tree0f91ea6ea13eec990643be2ebcda46e5af21d0bb /graph.php
parentjsrrdgraph: Fix get reponseText in FetchBinaryURL (diff)
downloadapt-panopticon_cgp-9c1afbca92af650a216ea39de1fe75278eeae418.zip
apt-panopticon_cgp-9c1afbca92af650a216ea39de1fe75278eeae418.tar.gz
apt-panopticon_cgp-9c1afbca92af650a216ea39de1fe75278eeae418.tar.bz2
apt-panopticon_cgp-9c1afbca92af650a216ea39de1fe75278eeae418.tar.xz
support php versions without json support and show a warning message
Diffstat (limited to 'graph.php')
-rw-r--r--graph.php2
1 files changed, 1 insertions, 1 deletions
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') {
35} 35}
36 36
37# plugin json 37# plugin json
38if (file_exists('plugin/'.$plugin.'.json')) { 38if (function_exists('json_decode') && file_exists('plugin/'.$plugin.'.json')) {
39 $json = file_get_contents('plugin/'.$plugin.'.json'); 39 $json = file_get_contents('plugin/'.$plugin.'.json');
40 $plugin_json = json_decode($json, true); 40 $plugin_json = json_decode($json, true);
41 41