avoid warning
This commit is contained in:
parent
675bdfad5c
commit
ee49956058
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user