mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-30 21:10:29 +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
6e3720f8e4
commit
003f98b18c
@ -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