X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Freset%2Freset_profile.php;h=ebd7ab008de1dcb34bf443c880eb7333e2f96c6a;hb=f2aeaab0cd313b2eeb151642455ed558f6b186dc;hp=9e8a052dccc126bfde96ba5b91467520d0cdbf60;hpb=643108b2b1fd7d1b2d67abdc5e97dff48258e3cc;p=mailer.git diff --git a/inc/reset/reset_profile.php b/inc/reset/reset_profile.php index 9e8a052dcc..ebd7ab008d 100644 --- a/inc/reset/reset_profile.php +++ b/inc/reset/reset_profile.php @@ -1,7 +1,7 @@ "); - if ((getConfig('send_prof_update') == 'Y') && (getConfig('profile_update') > 0) && (getConfig('resend_profile_update'))) { // Load personal data $result = SQL_QUERY_ESC("SELECT `userid`, `email`, `last_update`, `joined` @@ -56,7 +57,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,9 +73,9 @@ 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'); + $content['last_update'] = '{--PROFILE_NEVER_CHANGED--}'; } else { // Has changed his account $content['last_update'] = generateDateTime($content['last_update'], 0);