diff options
author | Alex Hermann | 2018-02-15 19:07:40 +0100 |
---|---|---|
committer | Alex Hermann | 2018-02-15 20:00:45 +0100 |
commit | 0504777c07fc5e7b1274a02a29141c1ccd019164 (patch) | |
tree | 7e8dc39dabf0f32df730d630a4a432cfca049ffe | |
parent | Merge pull request #156 from Arvur/master (diff) | |
download | apt-panopticon_cgp-0504777c07fc5e7b1274a02a29141c1ccd019164.zip apt-panopticon_cgp-0504777c07fc5e7b1274a02a29141c1ccd019164.tar.gz apt-panopticon_cgp-0504777c07fc5e7b1274a02a29141c1ccd019164.tar.bz2 apt-panopticon_cgp-0504777c07fc5e7b1274a02a29141c1ccd019164.tar.xz |
graph.php: Initialize $plugin_json variable.
Prevents error messages.
-rw-r--r-- | graph.php | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -38,6 +38,7 @@ if ($plugin == 'aggregation') { | |||
38 | # plugin json | 38 | # plugin json |
39 | if(function_exists('json_decode')) | 39 | if(function_exists('json_decode')) |
40 | { | 40 | { |
41 | $plugin_json = null; | ||
41 | if (file_exists('plugin/'.$plugin.'.json')) { | 42 | if (file_exists('plugin/'.$plugin.'.json')) { |
42 | $json = file_get_contents('plugin/'.$plugin.'.json'); | 43 | $json = file_get_contents('plugin/'.$plugin.'.json'); |
43 | $plugin_json = json_decode($json, true); | 44 | $plugin_json = json_decode($json, true); |