Code

Also allow 0 as release name
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 11 Jul 2006 04:00:00 +0000 (04:00 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 11 Jul 2006 04:00:00 +0000 (04:00 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4082 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiManagement.inc

index 3282b8a0498d42b2e819a04e4a5f07e37ec2832a..057cf420be16857aefa87ef33a4f49b040349bfa 100644 (file)
@@ -780,12 +780,10 @@ class faiManagement extends plugin
   function CheckNewBranchName($name,$base)
   {
     $f = $this->DivListFai->selectedBranch;
-    if(empty($name)){
+    if($name == ""){
       return(false);
     }elseif(in_array($name,$this->getBranches($f))) {
       return(false);
-    }elseif(empty($name)){
-      return(false);
     }elseif(is_department_name_reserved($name,$base)){
       return(false);
     }