From: skodak Date: Sat, 2 Jun 2007 14:08:14 +0000 (+0000) Subject: minor xhtml strict fix and coding style X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d08e1a0b82d4e744bf05c2bbb0d632ff5af39aa4;p=moodle.git minor xhtml strict fix and coding style --- 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 ""; }