diff options
author | Pim van den Berg | 2014-07-25 22:05:44 +0200 |
---|---|---|
committer | Pim van den Berg | 2014-07-25 22:05:44 +0200 |
commit | 9c1afbca92af650a216ea39de1fe75278eeae418 (patch) | |
tree | 0f91ea6ea13eec990643be2ebcda46e5af21d0bb /graph.php | |
parent | jsrrdgraph: Fix get reponseText in FetchBinaryURL (diff) | |
download | apt-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.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -35,7 +35,7 @@ if ($plugin == 'aggregation') { | |||
35 | } | 35 | } |
36 | 36 | ||
37 | # plugin json | 37 | # plugin json |
38 | if (file_exists('plugin/'.$plugin.'.json')) { | 38 | if (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 | ||