diff --git a/src/mibew/libs/groups.php b/src/mibew/libs/groups.php index 6e4e92db..bad5487f 100644 --- a/src/mibew/libs/groups.php +++ b/src/mibew/libs/groups.php @@ -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']; }