]> git.mxchange.org Git - mailer.git/blobdiff - inc/reset/reset_profile.php
More rewrites to make use of (cached) wrapper functions
[mailer.git] / inc / reset / reset_profile.php
index efb8658339dd8cc4d661b083d8fe5acb3a3553a3..16001ed8566ee68602f37c140d76cd35bbf6c660 100644 (file)
@@ -41,7 +41,7 @@
 // Some security stuff...
 if (!defined('__SECURITY')) {
        die();
-} elseif ((getOutputMode() != 0) || (!isResetModeEnabled())) {
+} elseif ((getScriptOutputMode() != 0) || (!isResetModeEnabled())) {
        // Do not execute when script is in CSS mode or no daily reset
        return;
 } elseif (!isExtensionActive('profile')) {
@@ -64,7 +64,7 @@ ORDER BY
        `userid` ASC", __FILE__, __LINE__);
 
        // Do we have some notifications to sent?
-       if (SQL_NUMROWS($result) > 0) {
+       if (!SQL_HASZERONUMS($result)) {
                // We need to send-out notifications...
                while ($content = SQL_FETCHARRAY($result)) {
                        // Translate timestamp