From da41091a053476388bf12b065dba48a24f9f74ed Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 22 Nov 2010 08:21:10 +0000 Subject: [PATCH] Only display errors in development mode git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20313 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/functions.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index 516ac61bd..46d19eb5c 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -1440,7 +1440,9 @@ function get_ou($class,$name) global $config; if(!$config->configRegistry->propertyExists($class,$name)){ - trigger_error("No department mapping found for type ".$name); + if($this->config->boolValueIsTrue("core","developmentMode")){ + trigger_error("No department mapping found for type ".$name); + } return ""; } -- 2.30.2