diff options
Diffstat (limited to 'classes/pluginhost.php')
-rw-r--r-- | classes/pluginhost.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/classes/pluginhost.php b/classes/pluginhost.php index 027d07539..25569302b 100644 --- a/classes/pluginhost.php +++ b/classes/pluginhost.php @@ -57,7 +57,11 @@ class PluginHost { } function get_hooks($type) { - return $this->hooks[$type]; + if (isset($this->hooks[$type])) { + return $this->hooks[$type]; + } else { + return array(); + } } function load($classlist) { |