} // END - if
// Abort if autopurge is not active or disabled by admin
-if ((!EXT_IS_ACTIVE("autopurge")) || (getConfig('auto_purge_active') == "N")) {
+if ((!EXT_IS_ACTIVE("autopurge")) || (getConfig('auto_purge_active') != "Y")) {
// Abort here
return false;
} // END - if
// Shall I auto-purge unconfirmed accounts?
if (getConfig('autopurge_unconfirmed') == "Y") {
// Init variables and find unconfirmed accounts which I shall auto-purge
- $time = bigintval(getConfig('ap_un_time'));
+ $time = getConfig(('ap_un_time'));
$result_uncon = SQL_QUERY_ESC("SELECT userid, email, joined
FROM `{!_MYSQL_PREFIX!}_user_data`
WHERE `status`='UNCONFIRMED' AND joined < (UNIX_TIMESTAMP() - %s)