From 37a2b61f770e4c98cf1536838a58a66203db41c7 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 8 Aug 2013 00:43:09 +0200 Subject: [PATCH] Fixed small issue --- .../cronjob/DailyCleanUpCronjob.class.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/wcfsetup/install/files/lib/system/cronjob/DailyCleanUpCronjob.class.php b/wcfsetup/install/files/lib/system/cronjob/DailyCleanUpCronjob.class.php index 74f80969ec..249176d421 100644 --- a/wcfsetup/install/files/lib/system/cronjob/DailyCleanUpCronjob.class.php +++ b/wcfsetup/install/files/lib/system/cronjob/DailyCleanUpCronjob.class.php @@ -33,8 +33,8 @@ class DailyCleanUpCronjob extends AbstractCronjob { AND lastSearchTime < ?"; $statement = WCF::getDB()->prepareStatement($sql); $statement->execute(array( - floor($row['searches'] / 4), - (TIME_NOW - 86400 * 30) + floor($row['searches'] / 4), + (TIME_NOW - 86400 * 30) )); } @@ -43,7 +43,7 @@ class DailyCleanUpCronjob extends AbstractCronjob { WHERE time < ?"; $statement = WCF::getDB()->prepareStatement($sql); $statement->execute(array( - (TIME_NOW - 86400 * USER_CLEANUP_NOTIFICATION_LIFETIME) + (TIME_NOW - 86400 * USER_CLEANUP_NOTIFICATION_LIFETIME) )); // clean up user activity events @@ -51,7 +51,7 @@ class DailyCleanUpCronjob extends AbstractCronjob { WHERE time < ?"; $statement = WCF::getDB()->prepareStatement($sql); $statement->execute(array( - (TIME_NOW - 86400 * USER_CLEANUP_ACTIVITY_EVENT_LIFETIME) + (TIME_NOW - 86400 * USER_CLEANUP_ACTIVITY_EVENT_LIFETIME) )); // clean up profile visitors @@ -59,7 +59,7 @@ class DailyCleanUpCronjob extends AbstractCronjob { WHERE time < ?"; $statement = WCF::getDB()->prepareStatement($sql); $statement->execute(array( - (TIME_NOW - 86400 * USER_CLEANUP_PROFILE_VISITOR_LIFETIME) + (TIME_NOW - 86400 * USER_CLEANUP_PROFILE_VISITOR_LIFETIME) )); // tracked visits @@ -77,12 +77,12 @@ class DailyCleanUpCronjob extends AbstractCronjob { // delete data $statement1->execute(array( - $objectType->objectTypeID, - $lifetime + $objectType->objectTypeID, + $lifetime )); $statement2->execute(array( - $objectType->objectTypeID, - $lifetime + $objectType->objectTypeID, + $lifetime )); } -- 2.20.1