fix instanceof ISettings check for activity settings
boolean logic is hard Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
83d32799ae
commit
6cb550d567
|
@ -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