Code

Fixed PHP Warning in config Management
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 25 Oct 2011 10:04:39 +0000 (10:04 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 25 Oct 2011 10:04:39 +0000 (10:04 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@21012 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto-ng/admin/newConfigManagement/class_ConfigManagement.inc

index 9923548d63495b6cc56d9dbc8dba922bfc527771..a2b5f2a3d6d16ba872fa5861615a76722df8b9b1 100644 (file)
@@ -65,6 +65,10 @@ class ConfigManagement extends plugin
 
         // Load some base install parameters
         $res = $rpc->getSupportedBaseInstallMethods();
+        if(!$rpc->success()){
+            $this->errorMessage = $rpc->get_error();;
+            return(FALSE);
+        }
         $baseInstTypes = $installationTypes = $installationMethods = array();
         foreach($res as $type => $data){
             $baseInstTypes[$type] = $type;