From 76c13f6d7d490b3f619873ff9283965bfa9d0e07 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 9 Jul 2008 05:43:15 +0000 Subject: [PATCH] Updated repository service. -Avoid adding empty 'section' names git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11563 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/services/repository/class_servRepositorySetup.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/fai/admin/systems/services/repository/class_servRepositorySetup.inc b/gosa-plugins/fai/admin/systems/services/repository/class_servRepositorySetup.inc index ad7ee735b..ac3509a8e 100644 --- a/gosa-plugins/fai/admin/systems/services/repository/class_servRepositorySetup.inc +++ b/gosa-plugins/fai/admin/systems/services/repository/class_servRepositorySetup.inc @@ -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; -- 2.30.2