From e786c3e780d39f631042b1c1310097af5ac592e0 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 23 Dec 2004 20:31:54 +0000 Subject: [PATCH] r16: Added checking for bug record in showreport.php and added new comment link. --- showreport.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/showreport.php b/showreport.php index d61614b..7af4863 100644 --- a/showreport.php +++ b/showreport.php @@ -82,6 +82,12 @@ if ($_REQUEST['do'] == 'modify') 'comment' => $buginfo['comment'] ); } + + if (!is_array($bug)) + { + echo 'alert: bad bug'; + exit; + } echo "
Bug ID: $bug[bugid]
"; echo "
Reported by: $bug[displayname]" . iff($bug['showemail'], " <$bug[email]>") . " (userid: $bug[userid])
"; @@ -101,6 +107,11 @@ if ($_REQUEST['do'] == 'modify') echo "" . nl2br($comment['comment']) . ""; } + if ($bugsys->userinfo['permissions'] & CANPOSTCOMMENTS) + { + echo "
[New Comment]
"; + } + /*print_r($bug); print_r($comments);*/ } -- 2.22.5