aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--graph.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/graph.php b/graph.php
index fbc93a7..55be9e9 100644
--- a/graph.php
+++ b/graph.php
@@ -35,6 +35,9 @@ if (file_exists('plugin/'.$plugin.'.json')) {
35 error_log('CGP Error: invalid json in plugin/'.$plugin.'.json'); 35 error_log('CGP Error: invalid json in plugin/'.$plugin.'.json');
36} 36}
37 37
38if (!isset($plugin_json[$type]['type']))
39 $plugin_json[$type]['type'] = 'default';
40
38switch ($plugin_json[$type]['type']) { 41switch ($plugin_json[$type]['type']) {
39 case 'stacked': 42 case 'stacked':
40 require_once 'type/GenericStacked.class.php'; 43 require_once 'type/GenericStacked.class.php';