// Check for accounts to be notified
$result_main = SQL_QUERY($sql, __FILE__, __LINE__);
- if (SQL_NUMROWS($result_main) > 0) {
+ if (!SQL_HASZERONUMS($result_main)) {
// Normal notification mails or bonus mails?
$sentBonusMails = ((getConfig('beg_notify_bonus') > 0) && ($mode == 'enable') && (isExtensionActive('bonus')));