mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-31 05:20:30 +03:00
Check variable is of type array before using it
For PHP 7.4
This commit is contained in:
parent
026b463fb7
commit
f28659a025
@ -76,6 +76,10 @@ function group_by_name($name)
|
|||||||
*/
|
*/
|
||||||
function get_group_name($group)
|
function get_group_name($group)
|
||||||
{
|
{
|
||||||
|
if (!is_array($group)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
$use_local_name = (get_home_locale() == get_current_locale())
|
$use_local_name = (get_home_locale() == get_current_locale())
|
||||||
|| !isset($group['vccommonname'])
|
|| !isset($group['vccommonname'])
|
||||||
|| !$group['vccommonname'];
|
|| !$group['vccommonname'];
|
||||||
|
Loading…
Reference in New Issue
Block a user