From 48cfee1c51193cb49612b0edd0b5b105b6895c35 Mon Sep 17 00:00:00 2001 From: Tony Lambregts Date: Sat, 25 Dec 2004 19:48:06 +0000 Subject: [PATCH] Fix up displaying comments when not logged in. --- include/comments.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/comments.php b/include/comments.php index 4c9a503..9ad9134 100644 --- a/include/comments.php +++ b/include/comments.php @@ -63,7 +63,7 @@ function view_app_comment($ob) echo "\n"; // delete message button, for admins - if(havepriv("admin") || $_SESSION['current']->is_maintainer($ob->appId, $ob->versionId)) + if (loggedin() && (havepriv("admin") || $_SESSION['current']->is_maintainer($appId,$versionId) )) { echo ""; echo "
\n";