From 7fbe4461c61faca849fcbdae499928b6cb87618e Mon Sep 17 00:00:00 2001 From: psc Date: Tue, 27 Oct 2009 18:24:05 +0000 Subject: [PATCH] Followup commit for #3285 If a repository service of a server has multiple releases with the same URL and one tries to delete it, it fails, because the deletion code path is never reached. This is caused by a wrong indenting, which is fixed with this commit. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14664 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/services/repository/class_servRepository.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/trunk/gosa-plugins/fai/admin/systems/services/repository/class_servRepository.inc b/trunk/gosa-plugins/fai/admin/systems/services/repository/class_servRepository.inc index 3971481d2..4fee0e65e 100644 --- a/trunk/gosa-plugins/fai/admin/systems/services/repository/class_servRepository.inc +++ b/trunk/gosa-plugins/fai/admin/systems/services/repository/class_servRepository.inc @@ -140,10 +140,10 @@ class servrepository extends goService if ($found){ msg_dialog::display(_("Error"), msgPool::stillInUse(_("FAI release"), msgPool::buildList($obj)), ERROR_DIALOG); - } - }else{ - if(isset($this->repositories[$value])){ - unset($this->repositories[$value]); + }else{ + if(isset($this->repositories[$value])){ + unset($this->repositories[$value]); + } } } } -- 2.30.2