Code

Some logical fixes
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 6 Oct 2005 11:51:40 +0000 (11:51 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 6 Oct 2005 11:51:40 +0000 (11:51 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1511 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiPackage.inc

index d760e8e5b2c86854792c9449a7a74c3d5657a5e6..df89c0749eba9ab42ab26a9d335b39f6319c9ff9 100644 (file)
@@ -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.");
     }