From: moodler Date: Mon, 5 Mar 2007 07:32:21 +0000 (+0000) Subject: Don't allow modes that don't exist X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=453db436a7d970fc07a31a3b6493ae12c69227bd;p=moodle.git Don't allow modes that don't exist --- diff --git a/mod/data/tabs.php b/mod/data/tabs.php index efc6f40fa0..6164f9bcd6 100755 --- a/mod/data/tabs.php +++ b/mod/data/tabs.php @@ -85,6 +85,9 @@ $currenttab = $template; } } + if ($currenttab == '') { + $currenttab = $mode = 'singletemplate'; + } $tabs[] = $row; $activetwo = array('templates'); } else {