Merge pull request #22061 from nextcloud/activity-instanceof-fix
fix instanceof ISettings check for activity settings
This commit is contained in:
commit
4520736593
|
@ -271,7 +271,7 @@ class Manager implements IManager {
|
||||||
/** @var ISetting $setting */
|
/** @var ISetting $setting */
|
||||||
$setting = \OC::$server->query($class);
|
$setting = \OC::$server->query($class);
|
||||||
|
|
||||||
if (!$setting instanceof ISetting) {
|
if ($setting instanceof ISetting) {
|
||||||
if (!$setting instanceof ActivitySettings) {
|
if (!$setting instanceof ActivitySettings) {
|
||||||
$setting = new ActivitySettingsAdapter($setting);
|
$setting = new ActivitySettingsAdapter($setting);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue