MDL-23833 rewritten guest autologin - not using redirect any more + migration to...
[moodle.git] / login / index_form.html
index a6b0050..2e35159 100644 (file)
@@ -50,7 +50,7 @@ if ($show_instructions) {
         </form>
       </div>
 
-<?php if ($CFG->guestloginbutton) {  ?>
+<?php if ($CFG->guestloginbutton and !isguestuser()) {  ?>
       <div class="subcontent guestsub">
         <div class="desc">
           <?php print_string("someallowguest") ?>