]> git.mjollnir.org Git - moodle.git/commitdiff
Don't allow modes that don't exist
authormoodler <moodler>
Mon, 5 Mar 2007 07:32:21 +0000 (07:32 +0000)
committermoodler <moodler>
Mon, 5 Mar 2007 07:32:21 +0000 (07:32 +0000)
mod/data/tabs.php

index efc6f40fa07093dc83f368c56148de361e752e97..6164f9bcd6d8bf5bf23766cf1df08800777ca215 100755 (executable)
@@ -85,6 +85,9 @@
                 $currenttab = $template;
             }
         }
+        if ($currenttab == '') {
+            $currenttab = $mode = 'singletemplate';
+        }
         $tabs[] = $row;
         $activetwo = array('templates');
     } else {