From 7a0a36269b20f582e1034cbd8615cf916849b2ec Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 23 Jan 2007 11:27:57 +0000 Subject: [PATCH] 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 --- plugins/admin/fai/class_faiPackage.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; -- 2.30.2