From 453db436a7d970fc07a31a3b6493ae12c69227bd Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 5 Mar 2007 07:32:21 +0000 Subject: [PATCH] Don't allow modes that don't exist --- mod/data/tabs.php | 3 +++ 1 file changed, 3 insertions(+) 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 { -- 2.39.5