]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix hook registration
authorBjoern Schiessle <schiessle@owncloud.com>
Wed, 1 Apr 2015 08:19:07 +0000 (10:19 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Tue, 7 Apr 2015 11:30:29 +0000 (13:30 +0200)
apps/encryption/lib/hookmanager.php

index e2b03d91bc8c18e065b6625aecf603f247fa36cb..19ee142a62263dd3ba3a5be8ff6ec0873a968d7a 100644 (file)
@@ -42,8 +42,9 @@ class HookManager {
                                $this->hookInstances[] = $instance;
                        }
 
+               } elseif ($instances instanceof IHook) {
+                       $this->hookInstances[] = $instances;
                }
-               $this->hookInstances[] = $instances;
                return true;
        }