diff options
author | Jakub Senko <jakubsenko@gmail.com> | 2016-05-27 12:59:30 +0200 |
---|---|---|
committer | Jakub Senko <jakubsenko@gmail.com> | 2016-05-27 12:59:30 +0200 |
commit | c103c42857d786b4f665f5d14f5129aece803837 (patch) | |
tree | 4d9e4b00af0702b732f0939cf7178925b873c0d3 /phpBB/phpbb/notification | |
parent | 7e6371ea8e10b4ad5bc93e0d1485f3db4a4ef458 (diff) | |
download | forums-c103c42857d786b4f665f5d14f5129aece803837.tar forums-c103c42857d786b4f665f5d14f5129aece803837.tar.gz forums-c103c42857d786b4f665f5d14f5129aece803837.tar.bz2 forums-c103c42857d786b4f665f5d14f5129aece803837.tar.xz forums-c103c42857d786b4f665f5d14f5129aece803837.zip |
[ticket/11446] Make get_notification_type_ids work with string too
PHPBB3-11446
Diffstat (limited to 'phpBB/phpbb/notification')
-rw-r--r-- | phpBB/phpbb/notification/manager.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/phpBB/phpbb/notification/manager.php b/phpBB/phpbb/notification/manager.php index 71407bbcec..ecba8938f2 100644 --- a/phpBB/phpbb/notification/manager.php +++ b/phpBB/phpbb/notification/manager.php @@ -967,11 +967,16 @@ class manager /** * Get notification type ids (as an array) * - * @param array $notification_type_names Array of strings + * @param string|array $notification_type_names Notification type names * @return array Array of integers */ - public function get_notification_type_ids(array $notification_type_names) + public function get_notification_type_ids($notification_type_names) { + if (!is_array($notification_type_names)) + { + $notification_type_names = array($notification_type_names); + } + $notification_type_ids = array(); foreach ($notification_type_names as $name) |