mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-29 13:00:26 +02:00
Merge branch '3.1.x' into 3.2.x
Conflicts: phpBB/phpbb/notification/manager.php
This commit is contained in:
@@ -943,11 +943,16 @@ class manager
|
|||||||
/**
|
/**
|
||||||
* Get notification type ids (as an array)
|
* 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
|
* @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();
|
$notification_type_ids = array();
|
||||||
|
|
||||||
foreach ($notification_type_names as $name)
|
foreach ($notification_type_names as $name)
|
||||||
|
Reference in New Issue
Block a user