From d33a85fd3d187d76fd86f891bba2d9fe17a035a0 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Thu, 7 Nov 2019 17:34:09 +0100 Subject: [PATCH] reply: restrict submission form to users Assumed as much on insert. --- widget/reply.php | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/widget/reply.php b/widget/reply.php index 3a16e2c..6fc1fa5 100644 --- a/widget/reply.php +++ b/widget/reply.php @@ -37,14 +37,16 @@ while ($row = $query->fetch()) { print "\n"; } -print '
  • '; -print '
    '; -printf(''."\n", - 'reply', - "Bericht van {$User->login}", - '' -); -print ''."\n"; -print "
  • \n"; +if ($User) { + print '
  • '; + print '
    '; + printf(''."\n", + 'reply', + "Bericht van {$User->login}", + '' + ); + print ''."\n"; + print "
  • \n"; +} print "\n\n"; -- 2.30.0