minor xhtml strict fix and coding style

This commit is contained in:
skodak
2007-06-02 14:08:14 +00:00
parent 63e21b9bda
commit d08e1a0b82
+5 -5
View File
@@ -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 "</div>";
}
if ($entriesshown ) {
echo "</form>";
} else if (!empty($formsent)) {
// close the form properly if not used
if (!empty($formsent)) {
// close the form properly if used
echo "</div>";
echo "</form>";
}