From: hickert Date: Thu, 6 Oct 2005 11:51:40 +0000 (+0000) Subject: Some logical fixes X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ca1a7236b801db711bae029577ce9cf8ab31004f;p=gosa.git Some logical fixes git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1511 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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."); }