summaryrefslogtreecommitdiff
path: root/classes/pluginhost.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-12-24 13:45:34 +0400
committerAndrew Dolgov <[email protected]>2012-12-24 13:45:34 +0400
commit19b3992b7855518c6fe05a380b6471902f5be5b7 (patch)
treed09272c3b28ca21c40dac5cf65dd36fa4e5a586e /classes/pluginhost.php
parente935c2bc54b22891f2c370d19d3366d94098dcfa (diff)
remove magpie, fix article filter plugins
Diffstat (limited to 'classes/pluginhost.php')
-rw-r--r--classes/pluginhost.php6
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) {