Code

Apply bugfix for #3285
authorpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 29 Apr 2010 09:03:23 +0000 (09:03 +0000)
committerpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 29 Apr 2010 09:03:23 +0000 (09:03 +0000)
Re-add a else clause that went missing and caused
repositories to be undeletable again.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@17926 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index 4fee0e65ed54c90a21df4a80201884141852e636..eae428b70487b822dda0f3ebc661af312a98a60e 100644 (file)
@@ -145,6 +145,10 @@ class servrepository extends goService
                 unset($this->repositories[$value]);
               }
             }
+          } else {
+            if(isset($this->repositories[$value])) {
+              unset($this->repositories[$value]);
+            }
           }
         }