]> git.mxchange.org Git - mailer.git/blobdiff - inc/reset/reset_profile.php
Huge rewrite of default parameters, ext-network continued:
[mailer.git] / inc / reset / reset_profile.php
index 9e8a052dccc126bfde96ba5b91467520d0cdbf60..94bdeead11e42321d8d081747f23970aad614be4 100644 (file)
@@ -56,7 +56,7 @@ FROM
 WHERE
        (`last_update` < (UNIX_TIMESTAMP() - %s) AND `last_update` != 0 AND `last_profile_sent` < (UNIX_TIMESTAMP() - %s))
 OR
-       (`last_update` = 0 AND `last_profile_sent` = 0 AND `joined` < (UNIX_TIMESTAMP() - %s))
+       (`last_update` = '0' AND `last_profile_sent` = '0' AND `joined` < (UNIX_TIMESTAMP() - %s))
 ORDER BY
        `userid` ASC",
                array(
@@ -72,7 +72,7 @@ ORDER BY
                        // Translate timestamp
                        $content['joined'] = generateDateTime($content['joined'], 0);
 
-                       if (round($content['last_update']) == 0) {
+                       if (round($content['last_update']) == '0') {
                                // Has never changed his accont
                                $content['last_update'] = getMessage('PROFILE_NEVER_CHANGED');
                        } else {