X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fautopurge%2Fpurge-inact.php;h=4a0ef168653731e83a6832201ed8177eec766721;hp=74dd7469a14577fc6becaa474bcc9d51fd868393;hb=30ae22f62ae87c53a56baf0d134569ba91011111;hpb=c72268213d4d4829d845d39c101bb08fbe4ed79a diff --git a/inc/autopurge/purge-inact.php b/inc/autopurge/purge-inact.php index 74dd7469a1..4a0ef16865 100644 --- a/inc/autopurge/purge-inact.php +++ b/inc/autopurge/purge-inact.php @@ -56,10 +56,7 @@ if (getConfig('autopurge_inactive') == 'Y') { // Init exclusion list // @TODO Rewrite these if() blocks to a filter $EXCLUDE_LIST = ''; - if (getConfig('def_refid') > 0) { - $EXCLUDE_LIST = ' AND d.`userid` != {?def_refid?}'; - } // END - if - + if (isValidUserId(getConfig('def_refid'))) $EXCLUDE_LIST .= ' AND d.`userid` != {?def_refid?}'; // Check for more extensions if (isExtensionActive('beg')) $EXCLUDE_LIST .= ' AND d.`userid` != {?beg_userid?}'; if (isExtensionActive('bonus')) $EXCLUDE_LIST .= ' AND d.`userid` != {?bonus_userid?}'; @@ -89,7 +86,7 @@ ORDER BY getApInactiveSince() ), __FILE__, __LINE__); - if (SQL_NUMROWS($result_inactive) > 0) { + if (!SQL_HASZERONUMS($result_inactive)) { // Prepare variables and constants... $useridsContent = ''; $content['since'] = (getApInactiveSince() / 60 / 60); @@ -140,7 +137,7 @@ WHERE ORDER BY `userid` ASC", __FILE__, __LINE__); - if (SQL_NUMROWS($result_inactive) > 0) { + if (!SQL_HASZERONUMS($result_inactive)) { // Prepare variable... $useridsContent = '';