From 70c4f07abc424367d66a89195f15ba897b1c9da3 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 27 Jul 2011 08:37:04 +0000 Subject: [PATCH] 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 --- gosa-core/include/functions.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.30.2