From d08e1a0b82d4e744bf05c2bbb0d632ff5af39aa4 Mon Sep 17 00:00:00 2001 From: skodak Date: Sat, 2 Jun 2007 14:08:14 +0000 Subject: [PATCH] minor xhtml strict fix and coding style --- mod/glossary/view.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mod/glossary/view.php b/mod/glossary/view.php index 0f90eef231..b37f55c063 100644 --- a/mod/glossary/view.php +++ b/mod/glossary/view.php @@ -396,7 +396,8 @@ $ratings = NULL; $ratingsmenuused = false; - if ($glossary->assessed and !empty($USER->id)) { + if ($glossary->assessed and isloggedin() and !isguestuser()) { + $ratings = new object(); if ($ratings->scale = make_grades_menu($glossary->scale)) { $ratings->assesstimestart = $glossary->assesstimestart; $ratings->assesstimefinish = $glossary->assesstimefinish; @@ -499,10 +500,9 @@ } echo ""; } - if ($entriesshown ) { - echo ""; - } else if (!empty($formsent)) { - // close the form properly if not used + + if (!empty($formsent)) { + // close the form properly if used echo ""; echo ""; } -- 2.39.5