X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fautopurge%2Fpurge-unconfirmed.php;h=0ef7d7ef076f4be944d909190634f9704862de8f;hb=255696fe065d35b951f66168c35296b10fdde060;hp=e6276a98ce45b01d22bdb21a140312622d31029e;hpb=de41e408f6fcbab2ff82fa14e83e825ba57ef273;p=mailer.git diff --git a/inc/autopurge/purge-unconfirmed.php b/inc/autopurge/purge-unconfirmed.php index e6276a98ce..0ef7d7ef07 100644 --- a/inc/autopurge/purge-unconfirmed.php +++ b/inc/autopurge/purge-unconfirmed.php @@ -43,7 +43,7 @@ if (!defined('__SECURITY')) { } // END - if // Abort if autopurge is not active or disabled by admin -if ((!isExtensionActive('autopurge')) || (getConfig('auto_purge_active') != 'Y')) { +if ((!isExtensionActive('autopurge')) || (!isAutoPurgingActive())) { // Abort here return false; } // END - if @@ -59,10 +59,10 @@ WHERE `status`='UNCONFIRMED' AND `joined` < (UNIX_TIMESTAMP() - {?ap_unconfirmed_time?}) ORDER BY `userid` ASC", __FILE__, __LINE__); - if (SQL_NUMROWS($result_uncon) > 0) { + if (!SQL_HASZERONUMS($result_uncon)) { // Prepare variable... $userids = ''; - $content['time'] = (getConfig('ap_unconfirmed_time') / 60 / 60); + $content['time'] = (getApUnconfirmedTime() / 60 / 60); // Delete inactive accounts while ($row = SQL_FETCHARRAY($result_uncon)) { @@ -84,7 +84,7 @@ ORDER BY // Send mail notification to admin if (getConfig('ap_un_notify') == 'Y') { - sendAdminNotification(getMessage('AUTOPURGE_ADMIN_UNCONFIRMED_SUBJECT'), 'admin_autopurge_unconfirmed', $userids); + sendAdminNotification('{--ADMIN_AUTOPURGE_UNCONFIRMED_SUBJECT--}', 'admin_autopurge_unconfirmed', $userids); } // END - if } // END - if