summaryrefslogtreecommitdiffstats
path: root/apps/encryption/lib/hookmanager.php
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2015-04-01 10:19:07 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-04-07 13:30:29 +0200
commitd90663704cc9bd1940374ca15519d5cbe1e7ca4e (patch)
treeebc1378daca79de158180f06c98e0b3859491331 /apps/encryption/lib/hookmanager.php
parent505e0eaf6168f6131951bcde7d4f75db9dcf48b7 (diff)
downloadnextcloud-server-d90663704cc9bd1940374ca15519d5cbe1e7ca4e.tar.gz
nextcloud-server-d90663704cc9bd1940374ca15519d5cbe1e7ca4e.zip
fix hook registration
Diffstat (limited to 'apps/encryption/lib/hookmanager.php')
-rw-r--r--apps/encryption/lib/hookmanager.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/encryption/lib/hookmanager.php b/apps/encryption/lib/hookmanager.php
index e2b03d91bc8..19ee142a622 100644
--- a/apps/encryption/lib/hookmanager.php
+++ b/apps/encryption/lib/hookmanager.php
@@ -42,8 +42,9 @@ class HookManager {
$this->hookInstances[] = $instance;
}
+ } elseif ($instances instanceof IHook) {
+ $this->hookInstances[] = $instances;
}
- $this->hookInstances[] = $instances;
return true;
}