Correcting 'Undefined index' notice on DevMode var

This commit is contained in:
Antonin 2015-04-07 17:29:15 +02:00
parent af668d2428
commit 1058d3653b

View File

@ -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;