]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-7861 xhtml strict fixes for login page - fixed empty div when no error
authorskodak <skodak>
Fri, 5 Jan 2007 00:16:19 +0000 (00:16 +0000)
committerskodak <skodak>
Fri, 5 Jan 2007 00:16:19 +0000 (00:16 +0000)
login/index_form.html

index 1c30b1d4df6ed31e31686c922b0d65ded24045a8..f4abb985ba67dc339cbf859664c289cdd33cc2a6 100644 (file)
@@ -22,14 +22,18 @@ if ($show_instructions) {
     <td style="width:<?php echo $leftwidth ?>" valign="top" class="content left">
       <div style="text-align:center"><?php print_string("loginusing") ?>:
         <?php
-        if (empty($CFG->usesid))
-        {
+        if (empty($CFG->usesid)) {
             echo "<br />(";
             print_string("cookiesenabled");
             echo ")";
             helpbutton("cookies", get_string("cookiesenabled"));
         }
-        ?><div><?php formerr($errormsg) ?></div>
+        if (!empty($errormsg)) {
+            echo '<div>';
+            formerr($errormsg);
+            echo '</div>';
+        }
+        ?>
       </div>
       <form action="index.php" method="post" id="login">
         <table border="0" style="margin-left:auto;margin-right:auto" summary="">