mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/11446] Make get_notification_type_ids work with string too
PHPBB3-11446
This commit is contained in:
parent
7e6371ea8e
commit
c103c42857
1 changed files with 7 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue