1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/11103] Declare $ for jQuery, check for instance of, newlines at eof

PHPBB3-11103
This commit is contained in:
Nathan Guse
2012-10-18 19:20:54 -05:00
parent f96dac3352
commit 2c06c2bd36
4 changed files with 8 additions and 4 deletions

View File

@@ -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;
}