Code

Updated workstation startup
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 7 Nov 2008 07:37:08 +0000 (07:37 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 7 Nov 2008 07:37:08 +0000 (07:37 +0000)
-Do not display warning if FAIrelease wasn't selected yet

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12955 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc

index 1d9131090abb61bcc41680763cd9f32b4573cfb3..2419a7abe97aac3400d561db6de8e6f517a501db 100644 (file)
@@ -1124,7 +1124,10 @@ class workstartup extends plugin
 
       /* Check if the selected release is available */
       if($this->FAIdebianMirror != "inherited" && !isset($this->cache['SERVERS'][$this->FAIdebianMirror][$this->FAIrelease])){
 
       /* Check if the selected release is available */
       if($this->FAIdebianMirror != "inherited" && !isset($this->cache['SERVERS'][$this->FAIdebianMirror][$this->FAIrelease])){
-        trigger_error("There was a problem with the selected FAIrelease. This release ('".$this->FAIrelease."') is not available");
+
+        if($this->FAIrelease != ""){
+          trigger_error("There was a problem with the selected FAIrelease. This release ('".$this->FAIrelease."') is not available");
+        }
         $this->FAIrelease = key($this->cache['SERVERS'][$this->FAIdebianMirror]);
       }
     }
         $this->FAIrelease = key($this->cache['SERVERS'][$this->FAIdebianMirror]);
       }
     }