distribution::delete() should return false upon failure

This commit is contained in:
Chris Morgan
2007-07-31 03:31:07 +00:00
committed by WineHQ
parent bc49543356
commit 8d61f9b497

View File

@@ -147,7 +147,7 @@ class distribution {
deleted along with the last testData associated with it */
if(!($this->canEdit() || (!sizeof($this->aTestingIds) &&
$this->sQueued != "false")))
return;
return false;
/* Check for associated test results */
if(sizeof($this->aTestingIds))
@@ -163,6 +163,7 @@ class distribution {
if(!($hResult = query_parameters($sQuery, $this->iDistributionId)))
{
addmsg("Error removing the Distribution!", "red");
return false;
}
if(!$bSilent)