diff --git a/src/mibew/libs/groups.php b/src/mibew/libs/groups.php index bad5487f..3093d179 100644 --- a/src/mibew/libs/groups.php +++ b/src/mibew/libs/groups.php @@ -202,8 +202,9 @@ function get_group_email($group_id) { // Try to get group email $group = group_by_id($group_id); + if (empty($group)) { - return ''; + return false; } if ($group && !empty($group['vcemail'])) {