X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fautopurge%2Fpurge-tsks.php;h=51d7c36f4261b741dba33409a07baa20848815ef;hp=f596a8673a7013177038a8a602b9bd3d7ec859a6;hb=3f51c40f4fede87228216f9285b745a339e3891d;hpb=07612d2debcc78a93678db0deed050d82df432f1 diff --git a/inc/autopurge/purge-tsks.php b/inc/autopurge/purge-tsks.php index f596a8673a..51d7c36f42 100644 --- a/inc/autopurge/purge-tsks.php +++ b/inc/autopurge/purge-tsks.php @@ -50,14 +50,11 @@ if ((!EXT_IS_ACTIVE('autopurge')) || (getConfig('auto_purge_active') != 'Y')) { // Check version (must be > 0.0) if ((GET_EXT_VERSION('task') > '0.0') && (getConfig('ap_tasks') == 'Y')) { - // Since when shall we purge? - $since = getConfig(('ap_tasks_time')); - // Purge deleted tasks (no notification to admin) SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{!_MYSQL_PREFIX!}_task_system` -WHERE `status`='DELETED' AND task_created <= (UNIX_TIMESTAMP() - %s)", - array($since), __FILE__, __LINE__); +WHERE `status`='DELETED' AND `task_created` <= (UNIX_TIMESTAMP() - %s)", + array(getConfig('ap_tasks_time')), __FILE__, __LINE__); // Get deleted rows $DELETED = SQL_AFFECTEDROWS();