testData_queue: always delete empty distributions if we can

This commit is contained in:
Alexander Nicolaysen Sørnes
2007-06-19 00:28:01 +00:00
committed by WineHQ
parent 2c32bc608b
commit e6b09f417f

View File

@@ -31,7 +31,7 @@ class testData_queue
queue for admins to clean up unused, queued entries */
$this->oDistribution = new distribution($this->oDistribution->iDistributionId);
if(!sizeof($this->oDistribution->aTestingIds) &&
$this->oDistribution->sQueued != "false")
$this->oDistribution->canEdit())
$this->oDistribution->delete();
return $bSuccess;