Only display delete link for distributions without any associated test data

This commit is contained in:
Alexander Nicolaysen Sørnes
2007-01-30 00:46:05 +00:00
committed by WineHQ
parent 4590b581c8
commit 783215a6f1

View File

@@ -474,12 +474,14 @@ class distribution {
if($this->canEdit())
{
if(!sizeof($this->aTestingIds))
{
$sDelete = " &nbsp; [<a href='".$_SERVER['PHP_SELF']."?sSub=delete&".
"iDistributionId=$this->iDistributionId'>delete</a>]";
}
$aCells[3] = array(
"[<a href='".BASE."admin/editDistribution.php?iDistributionId=".
$this->iDistributionId."'>edit</a>]".
(!sizeof($this->aTestingIds)) ?
" &nbsp; [<a href='".$_SERVER['PHP_SELF']."?sSub=delete&".
"iDistributionId=$this->iDistributionId'>delete</a>]" : "",
$this->iDistributionId."'>edit</a>]$sDelete",
"align=\"center\"");
}