From: cajus Date: Thu, 24 Jul 2008 12:10:57 +0000 (+0000) Subject: Added presence check X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ed739e24476842a07d5d2a2c21a5793a09221c68;p=gosa.git Added presence check git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12016 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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'])){