]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix instanceof ISettings check for activity settings 22061/head
authorRobin Appelman <robin@icewind.nl>
Thu, 30 Jul 2020 15:52:23 +0000 (17:52 +0200)
committerRobin Appelman <robin@icewind.nl>
Thu, 30 Jul 2020 15:53:14 +0000 (17:53 +0200)
boolean logic is hard

Signed-off-by: Robin Appelman <robin@icewind.nl>
lib/private/Activity/Manager.php

index cbe2d8c3eeeabde17a2452fd15982f4a195e1455..81fd91c778af0af59f97b1c4cff293d7d4b01c52 100644 (file)
@@ -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);
                                }