mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Merge pull request #38955 from nextcloud/bugfix/noid/dont-use-or
fix(eventdispatcher): Don't use all evaluating "or"
This commit is contained in:
commit
75a15dcfe4
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ class EventDispatcher implements IEventDispatcher {
|
|||
|
||||
// inject the event dispatcher into the logger
|
||||
// this is done here because there is a cyclic dependency between the event dispatcher and logger
|
||||
if ($this->logger instanceof Log or $this->logger instanceof Log\PsrLoggerAdapter) {
|
||||
if ($this->logger instanceof Log || $this->logger instanceof Log\PsrLoggerAdapter) {
|
||||
$this->logger->setEventDispatcher($this);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue