From: hickert Date: Mon, 22 Nov 2010 08:21:10 +0000 (+0000) Subject: Only display errors in development mode X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=da41091a053476388bf12b065dba48a24f9f74ed;p=gosa.git Only display errors in development mode git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20313 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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 ""; }