diff --git a/src/API/PluginAPI.php b/src/API/PluginAPI.php index 14320291..c3f8f0b7 100644 --- a/src/API/PluginAPI.php +++ b/src/API/PluginAPI.php @@ -149,7 +149,8 @@ class PluginAPI extends stdClass{ $aver = CURRENT_API_VERSION; if(!in_array((string) CURRENT_API_VERSION, $pluginInfo["api"])){ - $s = implode(", ", $pluginInfo["api"]); + if(is_array($pluginInfo)) $s = implode(",",$pluginInfo["api"]); + else $s = $pluginInfo["api"]; console("[WARNING] API is not the same as Core, might cause bugs({$s} != {$aver})"); }