Alexander Nicolaysen Sørnes : cron: Don' t examine deleted versions in orphan cleanup
Module: appdb Branch: master Commit: 658056bd91693bfa87fdd0735b8034d3ab095c2f URL: http://source.winehq.org/git/appdb.git/?a=commit;h=658056bd91693bfa87fdd0735... Author: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com> Date: Sun Jul 12 23:35:13 2009 +0200 cron: Don't examine deleted versions in orphan cleanup --- cron/cleanup.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/cron/cleanup.php b/cron/cleanup.php index 43a3e89..299c0b0 100644 --- a/cron/cleanup.php +++ b/cron/cleanup.php @@ -167,7 +167,7 @@ function orphanVersionCheck() { global $sEmailSubject; - $sQuery = "select versionId, versionName from appVersion where appId = 0"; + $sQuery = "select versionId, versionName from appVersion where appId = 0 and state != 'deleted'"; $hResult = query_appdb($sQuery); $found_orphans = false;
participants (1)
-
Alexander Nicolaysen Sørnes