From 59ed94fc54da2f72c239076b4733b7a5ab3b4d70 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Mon, 11 Jun 2007 04:06:06 +0000 Subject: [PATCH] Add a couple of comments and braces --- include/distribution.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/distribution.php b/include/distribution.php index 3999728..6018873 100644 --- a/include/distribution.php +++ b/include/distribution.php @@ -462,11 +462,15 @@ class distribution { "sUrl\">$this->sUrl", array(sizeof($this->aTestingIds), "align=\"right\"")); + // add actions if the current user has permission to edit this object if($this->canEdit()) { + // enable the 'delete' action if this distribution has no testing results if(!sizeof($this->aTestingIds)) + { $shDeleteLink = "   [delete]"; + } $aCells[] = array( "[