mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-31 05:20:30 +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
|
// Try to get group email
|
||||||
$group = group_by_id($group_id);
|
$group = group_by_id($group_id);
|
||||||
|
if (empty($group)) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
if ($group && !empty($group['vcemail'])) {
|
if ($group && !empty($group['vcemail'])) {
|
||||||
return $group['vcemail'];
|
return $group['vcemail'];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user