Code

Only display errors in development mode
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 22 Nov 2010 08:21:10 +0000 (08:21 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 22 Nov 2010 08:21:10 +0000 (08:21 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20313 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/functions.inc

index 516ac61bd3a1153c66050dd035957f938b576b48..46d19eb5c4e0a21b598f5562f0ad4bd16d9028ff 100644 (file)
@@ -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 "";
     }