Added ability to allow empty passwords, if the user does so, a random password will...
[mailer.git] / inc / mails / doubler_mails.php
index 0c400f7780d1403d5d935a97dfa93110ad820f69..03da51b034ff205c9b59c53a39f18de4687f313a 100644 (file)
@@ -106,10 +106,12 @@ LIMIT {?doubler_max_sent?}",
        ), __FILE__, __LINE__);
 
 // Do we have entries found?
-if (((SQL_NUMROWS($result_total) > 0) && (getConfig('doubler_sent_all') == 'Y')) || ((SQL_NUMROWS($result_main) == getConfig('doubler_group_sent')) && (getConfig('doubler_sent_all') != 'Y'))) {
+if (((!SQL_HASZERONUMS($result_total)) && (getConfig('doubler_sent_all') == 'Y')) || ((SQL_NUMROWS($result_main) == getConfig('doubler_group_sent')) && (getConfig('doubler_sent_all') != 'Y'))) {
        // Switch to matching SQL resource
        $result_load = $result_main;
-       if ((SQL_NUMROWS($result_total) > 0) && (getConfig('doubler_sent_all') == 'Y')) $result_load = $result_total;
+       if ((!SQL_HASZERONUMS($result_total)) && (getConfig('doubler_sent_all') == 'Y')) {
+               $result_load = $result_total;
+       } // END - if
 
        // At least one account was found
        while ($content = SQL_FETCHARRAY($result_load)) {