From ed739e24476842a07d5d2a2c21a5793a09221c68 Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 24 Jul 2008 12:10:57 +0000 Subject: [PATCH] Added presence check git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12016 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/html/logout.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gosa-core/html/logout.php b/gosa-core/html/logout.php index b54fea5f0..b0e5b0bef 100644 --- a/gosa-core/html/logout.php +++ b/gosa-core/html/logout.php @@ -65,7 +65,11 @@ textdomain($domain); /* Create smarty & Set template compile directory */ $smarty= new smarty(); -$smarty->compile_dir= $config->get_cfg_value("compile", '/var/spool/gosa/'); +if (isset($config)){ + $smarty->compile_dir= $config->get_cfg_value("compile", '/var/spool/gosa/'); +} else { + $smarty->compile_dir= '/var/spool/gosa/'; +} /* If GET request is posted, the logout was forced by pressing the link */ if (isset($_GET['request'])){ -- 2.30.2