diff options
| author | Nathan Guse <nathaniel.guse@gmail.com> | 2012-10-20 21:55:58 -0500 |
|---|---|---|
| committer | Nathan Guse <nathaniel.guse@gmail.com> | 2012-10-20 21:55:58 -0500 |
| commit | bc18e368c36af90b2e998913e827dc7be71f3bd0 (patch) | |
| tree | 2b748428c74629f2ae2163481b911ad7638e6eba /phpBB | |
| parent | 7e6f31b51d51b1ea6416ed15c425acbb669c463d (diff) | |
| download | forums-bc18e368c36af90b2e998913e827dc7be71f3bd0.tar forums-bc18e368c36af90b2e998913e827dc7be71f3bd0.tar.gz forums-bc18e368c36af90b2e998913e827dc7be71f3bd0.tar.bz2 forums-bc18e368c36af90b2e998913e827dc7be71f3bd0.tar.xz forums-bc18e368c36af90b2e998913e827dc7be71f3bd0.zip | |
[ticket/11103] Correct the test case
Fix a bug that broke it and make sure to set the needed config/auth settings
PHPBB3-11103
Diffstat (limited to 'phpBB')
| -rw-r--r-- | phpBB/includes/notification/manager.php | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/phpBB/includes/notification/manager.php b/phpBB/includes/notification/manager.php index 06ebaf24c4..75155c5dc3 100644 --- a/phpBB/includes/notification/manager.php +++ b/phpBB/includes/notification/manager.php @@ -701,10 +701,25 @@ class phpbb_notification_manager ->extension_directory($path) ->get_classes(); - unset($classes[array_search('phpbb_notification_type_interface', $classes)]); - unset($classes[array_search('phpbb_notification_type_base', $classes)]); - unset($classes[array_search('phpbb_notification_method_interface', $classes)]); - unset($classes[array_search('phpbb_notification_method_base', $classes)]); + if (array_search('phpbb_notification_type_interface', $classes) !== false) + { + unset($classes[array_search('phpbb_notification_type_interface', $classes)]); + } + + if (array_search('phpbb_notification_type_base', $classes) !== false) + { + unset($classes[array_search('phpbb_notification_type_base', $classes)]); + } + + if (array_search('phpbb_notification_method_interface', $classes) !== false) + { + unset($classes[array_search('phpbb_notification_method_interface', $classes)]); + } + + if (array_search('phpbb_notification_method_base', $classes) !== false) + { + unset($classes[array_search('phpbb_notification_method_base', $classes)]); + } return $classes; } |
