Change return type to empty string on bad incoming value

This commit is contained in:
Tsvetan Koshutanski 2021-03-26 23:07:52 +02:00 committed by Fedor A. Fetisov
parent f28659a025
commit 4f3d0a57f9

View File

@ -77,7 +77,7 @@ function group_by_name($name)
function get_group_name($group)
{
if (!is_array($group)) {
return null;
return '';
}
$use_local_name = (get_home_locale() == get_current_locale())