More rewrites to make use of (cached) wrapper functions
[mailer.git] / inc / mails / bonus_mails.php
index 7696dbf933b9c909efeab36a48d417dcceb0ad9a..c236c76b44acf66ef528890cfc8d9e17bb71ea80 100644 (file)
@@ -93,7 +93,7 @@ if (!empty($sql)) {
 
        // Check for accounts to be notified
        $result_main = SQL_QUERY($sql, __FILE__, __LINE__);
-       if (SQL_NUMROWS($result_main) > 0) {
+       if (!SQL_HASZERONUMS($result_main)) {
                // Okay lets notify all users!
                while ($content = SQL_FETCHARRAY($result_main)) {
                        // Update account