Add a couple of comments and braces
This commit is contained in:
@@ -462,11 +462,15 @@ class distribution {
|
|||||||
"<a href=\"$this->sUrl\">$this->sUrl</a>",
|
"<a href=\"$this->sUrl\">$this->sUrl</a>",
|
||||||
array(sizeof($this->aTestingIds), "align=\"right\""));
|
array(sizeof($this->aTestingIds), "align=\"right\""));
|
||||||
|
|
||||||
|
// add actions if the current user has permission to edit this object
|
||||||
if($this->canEdit())
|
if($this->canEdit())
|
||||||
{
|
{
|
||||||
|
// enable the 'delete' action if this distribution has no testing results
|
||||||
if(!sizeof($this->aTestingIds))
|
if(!sizeof($this->aTestingIds))
|
||||||
|
{
|
||||||
$shDeleteLink = " [<a href='".$oManager->makeUrl("delete",
|
$shDeleteLink = " [<a href='".$oManager->makeUrl("delete",
|
||||||
$this->iDistributionId)."'>delete</a>]";
|
$this->iDistributionId)."'>delete</a>]";
|
||||||
|
}
|
||||||
|
|
||||||
$aCells[] = array(
|
$aCells[] = array(
|
||||||
"[<a href='".$oManager->makeUrl("edit",
|
"[<a href='".$oManager->makeUrl("edit",
|
||||||
|
|||||||
Reference in New Issue
Block a user