From: hickert Date: Wed, 27 Jul 2011 08:37:04 +0000 (+0000) Subject: Fixed error message when the class.cache is missing X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=70c4f07abc424367d66a89195f15ba897b1c9da3;p=gosa.git Fixed error message when the class.cache is missing git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20963 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index 87b29d32f..57f61321e 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -73,7 +73,7 @@ define('DES3_CBC_MD5',5); define('DES3_CBC_SHA1',16); /* Include required files */ -require_once("class_location.inc"); +include_once("class_location.inc"); require_once ("functions_debug.inc"); require_once ("accept-to-gettext.inc"); @@ -3550,6 +3550,9 @@ function image($path, $action= "", $title= "", $align= "middle") $label= null; // Bail out, if there's no style file + if(!class_exists('session')){ + return ""; + } if(!session::global_is_set("img-styles")){ // Get theme