Hack to prevent infinite loop with LDAP + logging
Forward port of a50619200c
to 9.1/master
This commit is contained in:
parent
c6183f167c
commit
5bb06723b0
|
@ -94,11 +94,10 @@ class Owncloud {
|
|||
$url = ($request->getRequestUri() !== '') ? $request->getRequestUri() : '--';
|
||||
$method = is_string($request->getMethod()) ? $request->getMethod() : '--';
|
||||
if(\OC::$server->getConfig()->getSystemValue('installed', false)) {
|
||||
$userObj = \OC::$server->getUserSession()->getUser();
|
||||
$user = (\OC_User::getUser()) ? \OC_User::getUser() : '--';
|
||||
} else {
|
||||
$userObj = null;
|
||||
$user = '--';
|
||||
}
|
||||
$user = !is_null($userObj) ? $userObj->getUID() : '--';
|
||||
$entry = compact(
|
||||
'reqId',
|
||||
'remoteAddr',
|
||||
|
|
Loading…
Reference in New Issue