Code

Updated repository service.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 9 Jul 2008 05:43:15 +0000 (05:43 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 9 Jul 2008 05:43:15 +0000 (05:43 +0000)
-Avoid adding empty 'section' names

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11563 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/systems/services/repository/class_servRepositorySetup.inc

index ad7ee735b5add8525eef6cfda5b63cb062a20599..ac3509a8e42292b84e4b22e90c04929580f59074 100644 (file)
@@ -70,7 +70,9 @@ class servRepositorySetup  extends plugin
         /* Add new entries */
         foreach($vals as $entry){
           $entry = trim($entry);
-          $this->Sections[$entry]=$entry;
+          if(!empty($entry)){
+            $this->Sections[$entry]=$entry;
+          }
         }
       }else{
         $this->Sections[$val]=$val;