From 77a0c990d514c9e2f0b6e69b513c3398447ee2f9 Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 16 Jan 2008 17:00:44 +0000 Subject: [PATCH] Added error messages git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8419 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/functions.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index 50fb2868c..48e1db979 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -93,6 +93,12 @@ $REWRITE= array( "ä" => "ae", /* Class autoloader */ function __autoload($class_name) { global $class_mapping, $BASE_DIR; + + if ($class_mapping === NULL){ + echo sprintf(_("Fatal error: no class locations defined - please run '%s' to fix this"), "update-gosa"); + exit; + } + if (isset($class_mapping[$class_name])){ require_once($BASE_DIR."/".$class_mapping[$class_name]); } else { -- 2.30.2