diff options
Diffstat (limited to '')
-rw-r--r-- | graph.php | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 | ||
38 | if (!isset($plugin_json[$type]['type'])) | ||
39 | $plugin_json[$type]['type'] = 'default'; | ||
40 | |||
38 | switch ($plugin_json[$type]['type']) { | 41 | switch ($plugin_json[$type]['type']) { |
39 | case 'stacked': | 42 | case 'stacked': |
40 | require_once 'type/GenericStacked.class.php'; | 43 | require_once 'type/GenericStacked.class.php'; |