From 205fcdea42566e553a6c994abd4c3029d5da0298 Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Tue, 7 Sep 2021 10:39:53 +0200 Subject: [PATCH] changed reply button to only be there when user is logged in --- threadr/board/board.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/threadr/board/board.php b/threadr/board/board.php index d4d761f..6f683eb 100644 --- a/threadr/board/board.php +++ b/threadr/board/board.php @@ -28,11 +28,16 @@ foreach($statement->fetchAll() as $ROW) { $reply_reference = ""; } + // determine whether to put a reply button + if ($login) { + $reply_button = ""; + } else { + $reply_button = "" + } + echo "
- - - + $reply_button

$post_title

$reply_reference