aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-05-27 22:13:35 +0200
committerMarc Alexander <admin@m-a-styles.de>2016-05-27 22:13:35 +0200
commit80db259ab9010bbb0985c0dfaa4b2bac6dc8ab75 (patch)
tree9e818b79106a8c348cf2f7c4264fdc13f5f3d148
parent9bea18b5db81e985579584e6e240b8b3746a8a87 (diff)
parente30518461c1152acb4f3c9e7753f936890131c51 (diff)
downloadforums-80db259ab9010bbb0985c0dfaa4b2bac6dc8ab75.tar
forums-80db259ab9010bbb0985c0dfaa4b2bac6dc8ab75.tar.gz
forums-80db259ab9010bbb0985c0dfaa4b2bac6dc8ab75.tar.bz2
forums-80db259ab9010bbb0985c0dfaa4b2bac6dc8ab75.tar.xz
forums-80db259ab9010bbb0985c0dfaa4b2bac6dc8ab75.zip
Merge branch '3.1.x' into 3.2.x
Conflicts: phpBB/phpbb/notification/manager.php
-rw-r--r--phpBB/phpbb/notification/manager.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/phpBB/phpbb/notification/manager.php b/phpBB/phpbb/notification/manager.php
index 3265bcb629..023e1610f0 100644
--- a/phpBB/phpbb/notification/manager.php
+++ b/phpBB/phpbb/notification/manager.php
@@ -943,11 +943,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)