summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 770c365)
raw | patch | inline | side by side (parent: 770c365)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 10 Jul 2006 05:58:43 +0000 (05:58 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 10 Jul 2006 05:58:43 +0000 (05:58 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4055 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_workstationStartup.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_workstationStartup.inc b/plugins/admin/systems/class_workstationStartup.inc
index a795da93a507544679cd7eb119878fb8a6a07e14..7e13a94df0615bd15540f7f85189dacde78f22e1 100644 (file)
if(!in_array($this->FAIrelease, $tmp2)){
$this->FAIrelease = key($tmp2);
}
-
+
/* Get all Packages for this server/release combination
*/
if(!isset($this->FAIServRepConfig[$this->FAIdebianMirror]['RELEASE'][$this->FAIrelease]['PACKAGES'])){
$this->FAIdebianMirror = "auto";
}
- $errorClasses = "";
-
+ $errorClasses = array();
+
+ if(is_array($this->FAIServRepConfig[$this->FAIdebianMirror]['RELEASE'])){
foreach($this->FAIServRepConfig[$this->FAIdebianMirror]['RELEASE'] as $release => $sections){
$use = true;
$ret[$release]=$release;
}
}
+ }
if((count($ret) == 0 ) && ($this->FAIdebianMirror != "auto")){
$eClasses = " ";
foreach($errorClasses as $class){
$eClasses .= $class." ";
}
-
- $this->FAIclass= array();
- print_red(sprintf(_("Can't resolve the given FAIclass(es) [%s] anyway, please check your FAI configurations, possibly some classes where deleted or renamed. !All classes have been removed from this account, press cancel if you don't want this to be saved."),$eClasses));
+
+ $eClasses = preg_replace("/ */","",$eClasses);
+
+ if(!empty($eClasses)) {
+ $this->FAIclass= array();
+ print_red(sprintf(_("Can't resolve the given FAIclass(es) [%s] anyway, please check your FAI configurations, possibly some classes where deleted or renamed. !All classes have been removed from this account, press cancel if you don't want this to be saved."),$eClasses));
+ }
}
return($ret);
}