cron: Don't examine deleted versions in orphan cleanup

This commit is contained in:
Alexander Nicolaysen Sørnes
2009-07-12 23:35:13 +02:00
parent 0a42c3e36c
commit 658056bd91

View File

@@ -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;