avoid warning

This commit is contained in:
Steffen Schröder committed 2014-05-15 14:25:19 +02:00
1 parent 675bdfad5c
commit ee49956058
1 file changed
+5 -1
+5 -1
View File
@@ -102,7 +102,11 @@ class PluginManager {
if (!class_exists($pluginClass, false)) {
return false;
}
if (!in_array(Plugin::PLUGIN_INTERFACE, class_implements($pluginClass, false))) {
$interfaces = class_implements($pluginClass, false);
if (!$interfaces) {
return false;
}
if (!in_array(Plugin::PLUGIN_INTERFACE, $interfaces)) {
return false;
}
return true;