From 6cb550d567b82f07fc98363e8df2d8c7b6ddce72 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 30 Jul 2020 17:52:23 +0200 Subject: [PATCH] fix instanceof ISettings check for activity settings boolean logic is hard Signed-off-by: Robin Appelman --- lib/private/Activity/Manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5