Code

Followup commit for #3285
authorpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 27 Oct 2009 18:24:05 +0000 (18:24 +0000)
committerpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 27 Oct 2009 18:24:05 +0000 (18:24 +0000)
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

trunk/gosa-plugins/fai/admin/systems/services/repository/class_servRepository.inc

index 3971481d2d538a13449d5905ab683d8a6144746f..4fee0e65ed54c90a21df4a80201884141852e636 100644 (file)
@@ -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]);
+              }
             }
           }
         }