Don't allow modes that don't exist

This commit is contained in:
moodler 2007-03-05 07:32:21 +00:00
parent 5af76d3c91
commit 453db436a7

View File

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