Code

Only display errors about missing classes while we are in development mode
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 24 Nov 2010 10:39:34 +0000 (10:39 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 24 Nov 2010 10:39:34 +0000 (10:39 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20351 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_faiManagement.inc

index b6c24815c6b4d58d967f71b455748bcf2e315f32..315f136c68f9f008621e9ab266de0498f8cd8040 100644 (file)
@@ -862,10 +862,12 @@ class faiManagement extends management
           }
         }
       }else{
-        trigger_error("Unknown class DaemonEvent / gosaSupportDaemon");
-        msg_dialog::display(_("Fatal error"),
-            "Daemon events called but classes where not accessible, DaemonEvent gosaSupportDaemon",
-            FATAL_ERROR_DIALOG);
+          if($this->config->boolValueIsTrue("core","developmentMode")){
+              trigger_error("Unknown class DaemonEvent / gosaSupportDaemon");
+              msg_dialog::display(_("Fatal error"),
+                      "Daemon events called but classes where not accessible, DaemonEvent gosaSupportDaemon",
+                      FATAL_ERROR_DIALOG);
+          }
       }
     
       // Update list and release selector to point to the newly created release