summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5759185)
raw | patch | inline | side by side (parent: 5759185)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 2 Jan 2006 13:26:02 +0000 (13:26 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 2 Jan 2006 13:26:02 +0000 (13:26 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2392 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 8fb322f81769586f803b2f62566bb5f7cb1f1b2a..f16c3ca683f5bc8c517b70c3da0bc23adff14b7e 100644 (file)
function getFAIdebianMirrors()
{
$ret = array();
-
- foreach($this->FAIclass as $classes){
- if(isset($this->FAIclassInfo[ $classes]['FAIpackageList']['sec'])){
- if(isset($this->FAIclassInfo[ $classes]['FAIpackageList']['sec']['count'])){
- unset($this->FAIclassInfo[ $classes]['FAIpackageList']['sec']['count']);
- }
-
- foreach($this->FAIclassInfo[ $classes]['FAIpackageList']['sec'] as $sec => $value){
- $secs[$value]= $value;
+ $secs = array();
+ if(is_array($this->FAIclass)){
+ foreach($this->FAIclass as $classes){
+ if(isset($this->FAIclassInfo[ $classes]['FAIpackageList']['sec'])){
+ if(isset($this->FAIclassInfo[ $classes]['FAIpackageList']['sec']['count'])){
+ unset($this->FAIclassInfo[ $classes]['FAIpackageList']['sec']['count']);
+ }
+ if(is_array($this->FAIclassInfo[ $classes]['FAIpackageList']['sec'])){
+ foreach($this->FAIclassInfo[ $classes]['FAIpackageList']['sec'] as $sec => $value){
+ $secs[$value]= $value;
+ }
+ }
}
}
}
- foreach($this->FAIdebianMirrors as $mirr=>$sections){
- $allok = true;
- foreach($secs as $sec){
- if(!in_array($sec,$sections)){
- $allok = false;
+ if(is_array($this->FAIdebianMirrors)){
+ foreach($this->FAIdebianMirrors as $mirr=>$sections){
+ $allok = true;
+ foreach($secs as $sec){
+ if(!in_array($sec,$sections)){
+ $allok = false;
+ }
+ }
+ if($allok){
+ $ret[$mirr]=$mirr;
}
- }
- if($allok){
- $ret[$mirr]=$mirr;
}
}
$ret['auto']=_("automatic");