Skip deleting a distributions test results if there are no test results for the distribution

This commit is contained in:
Chris Morgan
2007-08-27 03:46:03 +00:00
committed by WineHQ
parent db00c49d73
commit 82d02d655f

View File

@@ -157,10 +157,13 @@ class distribution {
return FALSE; return FALSE;
// delete any test results this distribution has // delete any test results this distribution has
foreach($this->aTestingIds as $iTestId) if($this->aTestingIds)
{ {
$oTestData = new TestData($iTestId); foreach($this->aTestingIds as $iTestId)
$oTestData->delete(); {
$oTestData = new TestData($iTestId);
$oTestData->delete();
}
} }
// now delete the Distribution // now delete the Distribution