From: hickert Date: Tue, 23 Jan 2007 11:27:57 +0000 (+0000) Subject: Skip selecting sections, if there is no valid repository server containing this release. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7a0a36269b20f582e1034cbd8615cf916849b2ec;p=gosa.git Skip selecting sections, if there is no valid repository server containing this release. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5595 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/fai/class_faiPackage.inc b/plugins/admin/fai/class_faiPackage.inc index c3b84bfe1..9e45b692e 100644 --- a/plugins/admin/fai/class_faiPackage.inc +++ b/plugins/admin/fai/class_faiPackage.inc @@ -191,8 +191,10 @@ class faiPackage extends plugin /* Assemble sections */ $repos= $this->getServerInfos(); - $this->FAIdebianSection= $repos[$this->FAIdebianRelease]; - $this->FAIdebianSection= array_unique($this->FAIdebianSection); + if(isset($repos[$this->FAIdebianRelease])){ + $this->FAIdebianSection= $repos[$this->FAIdebianRelease]; + $this->FAIdebianSection= array_unique($this->FAIdebianSection); + } /* Assign Repository settings*/ $this->is_account = true;