mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 14:23:17 -04:00
fix(Log): revert swich to ?? operator
false is expected, not null. The changed caused "user" in the log files to be false instead of "--", which is breaking behaviour. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
dc8e16c520
commit
fe52a03ff8
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ abstract class LogDetails {
|
|||
$url = ($request->getRequestUri() !== '') ? $request->getRequestUri() : '--';
|
||||
$method = is_string($request->getMethod()) ? $request->getMethod() : '--';
|
||||
if ($this->config->getValue('installed', false)) {
|
||||
$user = \OC_User::getUser() ?? '--';
|
||||
$user = \OC_User::getUser() ?: '--';
|
||||
} else {
|
||||
$user = '--';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue