]> git.mjollnir.org Git - moodle.git/commitdiff
mod/glossary: HTML fixes
authormattc-catalyst <mattc-catalyst>
Mon, 16 Apr 2007 23:16:25 +0000 (23:16 +0000)
committermattc-catalyst <mattc-catalyst>
Mon, 16 Apr 2007 23:16:25 +0000 (23:16 +0000)
Fixed HTML errors causing parser errors in Firefox when in developer debug
mode.

Author: Matt Clarkson <mattc@catalyst.net.nz>
Committer: Matt Clarkson <mattc@catalyst.net.nz>

mod/glossary/lib.php
mod/glossary/view.php

index 5cad095fcd586f529c8b8a92bf47c877e9d5c217..64e6dc3e41a8ae7772d0446c1ac3c34e03f62db4 100644 (file)
@@ -1476,7 +1476,7 @@ function glossary_print_comment($course, $cm, $glossary, $entry, $comment) {
     echo '<div class="boxaligncenter">';
     echo '<table class="glossarycomment" cellspacing="0">';
     echo '<tr valign="top">';
-    echo '<tr><td class="left picture">';
+    echo '<td class="left picture">';
     print_user_picture($user->id, $course->id, $user->picture);
     echo '</td>';
     echo '<td class="entryheader">';
index ddd34ef285fb6c190e8b2482521601a5ffd425c5..7eae7475753ba5eabbaf22b9fb91dbec45fe0f2d 100644 (file)
                 $ratings->allow = true;
             }
             $formsent = 1;
+
             echo "<form method=\"post\" action=\"rate.php\">";
             echo "<div>";
             echo "<input type=\"hidden\" name=\"id\" value=\"$course->id\" />";
                 print_scale_menu_helpbutton($course->id, $scale );
             }
         }
-        echo "</div>";
-        echo "</div>";
+        echo "</div>";    
+    }
+    if ($entriesshown ) {
         echo "</form>";
     } else if (!empty($formsent)) {
         // close the form properly if not  used
         echo "</div>";
         echo "</form>";  
     }
-
+    
     if ( $paging ) {
         echo '<hr />';
         echo '<div class="paging">';