X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_autopurge.php;h=1d2cd22b690e3be7708ade1ab7d061062e89af8d;hb=ff9e8f739bd4b6e184b2a6bf427334196e501da8;hp=aa8f843ec6751adab0d864bfcd830b6a6bd8f0f8;hpb=cf3765c38cf0a76f396aca291f71858936e92956;p=mailer.git diff --git a/inc/modules/admin/what-list_autopurge.php b/inc/modules/admin/what-list_autopurge.php index aa8f843ec6..1d2cd22b69 100644 --- a/inc/modules/admin/what-list_autopurge.php +++ b/inc/modules/admin/what-list_autopurge.php @@ -48,11 +48,7 @@ addMenuDescription('admin', __FILE__); // Exclude default referal id if set // @TODO Rewrite those lines to filter $EXCLUDE_LIST = ''; -if (getConfig('def_refid') > 0) { - $EXCLUDE_LIST = ' AND d.userid != {?def_refid?}'; -} // END - if - -// Check for more extensions +if (getConfig('def_refid') > 0) $EXCLUDE_LIST .= ' AND d.userid != {?def_refid?}'; if (isExtensionActive('beg')) $EXCLUDE_LIST .= ' AND d.userid != {?beg_userid?}'; if (isExtensionActive('bonus')) $EXCLUDE_LIST .= ' AND d.userid != {?bonus_userid?}'; if (isExtensionActive('doubler')) $EXCLUDE_LIST .= ' AND d.userid != {?doubler_userid?}'; @@ -72,7 +68,7 @@ WHERE ORDER BY d.userid ASC", __FILE__, __LINE__); -if (SQL_NUMROWS($result) > 0) { +if (!SQL_HASZERONUMS($result)) { // Ok, we have found some inactive accounts $OUT = ''; while ($content = SQL_FETCHARRAY($result)) {