From ca1a7236b801db711bae029577ce9cf8ab31004f Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 6 Oct 2005 11:51:40 +0000 Subject: [PATCH] Some logical fixes git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1511 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiPackage.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/admin/fai/class_faiPackage.inc b/plugins/admin/fai/class_faiPackage.inc index d760e8e5b..df89c0749 100644 --- a/plugins/admin/fai/class_faiPackage.inc +++ b/plugins/admin/fai/class_faiPackage.inc @@ -98,7 +98,7 @@ class faiPackage extends plugin } if(isset($_POST['Addpkg'])){ - $this->dialog = new faiPackageEntry($this->config, $this->dn,$this->confDir.$this->mirror."/".$this->section."/".$this->release,$this->usedPackages); + $this->dialog = new faiPackageEntry($this->config, $this->dn,$this->confDir.$this->FAIdebianMirror."/".$this->FAIdebianSection."/".$this->FAIdebianRelease,$this->usedPackages); $this->is_dialog =true; } @@ -238,7 +238,11 @@ class faiPackage extends plugin function check() { $message= array(); - + + if(count($this->usedPackages)==0){ + $message[]=_("Please select a least one Package."); + } + if((empty($this->FAIdebianSection))||(empty($this->FAIdebianRelease))||(empty($this->FAIdebianMirror))){ $message[]=_("Please choose a valid combination for your repository setup."); } -- 2.30.2