diff options
author | Robin Appelman <robin@icewind.nl> | 2020-07-30 17:52:23 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2020-07-30 17:53:14 +0200 |
commit | 6cb550d567b82f07fc98363e8df2d8c7b6ddce72 (patch) | |
tree | 1dddb5135802575c2a5ef5721db6bccf77c44cc7 /lib | |
parent | 83d32799aefd2d82bd38b60e8f0b9bf4e2682d97 (diff) | |
download | nextcloud-server-6cb550d567b82f07fc98363e8df2d8c7b6ddce72.tar.gz nextcloud-server-6cb550d567b82f07fc98363e8df2d8c7b6ddce72.zip |
fix instanceof ISettings check for activity settings
boolean logic is hard
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Activity/Manager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Activity/Manager.php b/lib/private/Activity/Manager.php index cbe2d8c3eee..81fd91c778a 100644 --- a/lib/private/Activity/Manager.php +++ b/lib/private/Activity/Manager.php @@ -271,7 +271,7 @@ class Manager implements IManager { /** @var ISetting $setting */ $setting = \OC::$server->query($class); - if (!$setting instanceof ISetting) { + if ($setting instanceof ISetting) { if (!$setting instanceof ActivitySettings) { $setting = new ActivitySettingsAdapter($setting); } |