From: psc Date: Tue, 27 Oct 2009 18:24:05 +0000 (+0000) Subject: Followup commit for #3285 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7fbe4461c61faca849fcbdae499928b6cb87618e;p=gosa.git 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 --- 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]); + } } } }