From 19b3992b7855518c6fe05a380b6471902f5be5b7 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 24 Dec 2012 13:45:34 +0400 Subject: remove magpie, fix article filter plugins --- classes/pluginhost.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'classes/pluginhost.php') 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) { -- cgit v1.2.3-54-g00ecf