From: Robin Appelman Date: Thu, 30 Jul 2020 15:52:23 +0000 (+0200) Subject: fix instanceof ISettings check for activity settings X-Git-Tag: v20.0.0beta1~158^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F22061%2Fhead;p=nextcloud-server.git fix instanceof ISettings check for activity settings boolean logic is hard Signed-off-by: Robin Appelman --- 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); }