avoid warning

This commit is contained in:
Steffen Schröder 2014-05-15 14:25:19 +02:00
parent 675bdfad5c
commit ee49956058

View File

@ -102,7 +102,11 @@ class PluginManager {
if (!class_exists($pluginClass, false)) { if (!class_exists($pluginClass, false)) {
return 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 false;
} }
return true; return true;