diff options
author | Nathan Guse <nathaniel.guse@gmail.com> | 2012-10-18 19:20:54 -0500 |
---|---|---|
committer | Nathan Guse <nathaniel.guse@gmail.com> | 2012-10-18 19:20:54 -0500 |
commit | 2c06c2bd3646585a5b02e6269be655287352a667 (patch) | |
tree | 4b8930d2ba2ca54ccc8b29fc4549148af20773b1 /phpBB/includes/notification | |
parent | f96dac335287f2fd51ff6628facbc8b6af6a517f (diff) | |
download | forums-2c06c2bd3646585a5b02e6269be655287352a667.tar forums-2c06c2bd3646585a5b02e6269be655287352a667.tar.gz forums-2c06c2bd3646585a5b02e6269be655287352a667.tar.bz2 forums-2c06c2bd3646585a5b02e6269be655287352a667.tar.xz forums-2c06c2bd3646585a5b02e6269be655287352a667.zip |
[ticket/11103] Declare $ for jQuery, check for instance of, newlines at eof
PHPBB3-11103
Diffstat (limited to 'phpBB/includes/notification')
-rw-r--r-- | phpBB/includes/notification/manager.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/notification/manager.php b/phpBB/includes/notification/manager.php index a98e1f7af3..38c72ad755 100644 --- a/phpBB/includes/notification/manager.php +++ b/phpBB/includes/notification/manager.php @@ -518,7 +518,7 @@ class phpbb_notification_manager $class = $this->get_item_type_class($class_name); - if ($class->is_available() && method_exists($class_name, 'get_item_type')) + if ($class instanceof phpbb_notification_type_interface && $class->is_available() && method_exists($class_name, 'get_item_type')) { $options = array_merge(array( 'id' => $class_name::get_item_type(), @@ -556,7 +556,7 @@ class phpbb_notification_manager $method = $this->get_method_class($class_name); - if ($method->is_available()) + if ($method instanceof phpbb_notification_method_interface && $method->is_available()) { $subscription_methods[] = $method_name; } |