diff options
author | Michael Tänzer <neo@nhng.de> | 2014-04-07 16:59:06 +0200 |
---|---|---|
committer | Michael Tänzer <neo@nhng.de> | 2014-04-07 16:59:06 +0200 |
commit | 092e2b5dd62cc588e81a4db3a1d9d28e33fa0cc0 (patch) | |
tree | dc0b2b94e468260e202fed196fe3785fc22ae0db | |
parent | 9fac7480427d57ab70d5edbeb529640c430e381f (diff) | |
download | cacert-devel-092e2b5dd62cc588e81a4db3a1d9d28e33fa0cc0.tar.gz cacert-devel-092e2b5dd62cc588e81a4db3a1d9d28e33fa0cc0.tar.xz cacert-devel-092e2b5dd62cc588e81a4db3a1d9d28e33fa0cc0.zip |
bug 1138: only show "change comment" check boxes when not read only
Signed-off-by: Michael Tänzer <neo@nhng.de>
-rw-r--r-- | includes/notary.inc.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/includes/notary.inc.php b/includes/notary.inc.php index 1518d4e..7224414 100644 --- a/includes/notary.inc.php +++ b/includes/notary.inc.php @@ -1736,10 +1736,14 @@ function output_client_cert($row, $support=0, $readonly=true){ <td class="DataTD"> <input name="comment_<?=$row['id']?>" type="text" value="<?=htmlspecialchars($row['description'])?>" /> </td> - <td class="DataTD"> - <input type="checkbox" name="check_comment_<?=$row['id']?>" /> - </td> <? + if (!$readonly) { + ?> + <td class="DataTD"> + <input type="checkbox" name="check_comment_<?=$row['id']?>" /> + </td> + <? + } } ?> |