]> git.mjollnir.org Git - moodle.git/commitdiff
minor xhtml strict fix and coding style
authorskodak <skodak>
Sat, 2 Jun 2007 14:08:14 +0000 (14:08 +0000)
committerskodak <skodak>
Sat, 2 Jun 2007 14:08:14 +0000 (14:08 +0000)
mod/glossary/view.php

index 0f90eef231d36f5f1ede7346d78b93dd977770b5..b37f55c0638a718c18b593b32b5b97078636631a 100644 (file)
 
         $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;
         }
         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>";  
     }