Code

Added presence check
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 24 Jul 2008 12:10:57 +0000 (12:10 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 24 Jul 2008 12:10:57 +0000 (12:10 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12016 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/html/logout.php

index b54fea5f0f7a709ea16b37a8cac32c84aebdba20..b0e5b0beff50ee5712bf59001eaa9bdfc7dbfdee 100644 (file)
@@ -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'])){