From ee49956058a1a1413a66b31eb80e6ad9c92ed64a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Thu, 15 May 2014 14:25:19 +0200 Subject: [PATCH] avoid warning --- application/core/Plugins/PluginManager.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/application/core/Plugins/PluginManager.php b/application/core/Plugins/PluginManager.php index 2824935b..2b4f533f 100644 --- a/application/core/Plugins/PluginManager.php +++ b/application/core/Plugins/PluginManager.php @@ -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;