mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 19:50:14 +01:00
Don't allow modes that don't exist
This commit is contained in:
parent
5af76d3c91
commit
453db436a7
@ -85,6 +85,9 @@
|
||||
$currenttab = $template;
|
||||
}
|
||||
}
|
||||
if ($currenttab == '') {
|
||||
$currenttab = $mode = 'singletemplate';
|
||||
}
|
||||
$tabs[] = $row;
|
||||
$activetwo = array('templates');
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user