From 1058d3653be04cef5d531e80d271f5392e77831b Mon Sep 17 00:00:00 2001 From: Antonin Date: Tue, 7 Apr 2015 17:29:15 +0200 Subject: [PATCH] Correcting 'Undefined index' notice on DevMode var --- app/inc/smarty.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/inc/smarty.php b/app/inc/smarty.php index 98ad34b..63cea1d 100644 --- a/app/inc/smarty.php +++ b/app/inc/smarty.php @@ -35,7 +35,7 @@ $smarty->assign('langs', $ALLOWED_LANGUAGES); $smarty->assign('date_format', $date_format); // Dev Mode -if ($_SERVER['FRAMADATE_DEVMODE']) { +if (isset($_SERVER['FRAMADATE_DEVMODE']) && $_SERVER['FRAMADATE_DEVMODE']) { $smarty->force_compile = true; $smarty->compile_check = true;