mirror of
https://github.com/Mibew/mibew.git
synced 2025-03-14 06:54:08 +03:00
Check if group is set
The actual value is possible to be null, thus leading to PHP notice without the check. For PHP7.4
This commit is contained in:
parent
1472164021
commit
87445395c0
@ -202,6 +202,10 @@ function get_group_email($group_id)
|
||||
{
|
||||
// Try to get group email
|
||||
$group = group_by_id($group_id);
|
||||
if (empty($group)) {
|
||||
return '';
|
||||
}
|
||||
|
||||
if ($group && !empty($group['vcemail'])) {
|
||||
return $group['vcemail'];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user