Hack to prevent infinite loop with LDAP + logging

Forward port of a50619200c to 9.1/master
This commit is contained in:
Vincent Petry 2016-05-25 17:35:52 +02:00
parent c6183f167c
commit 5bb06723b0
No known key found for this signature in database
GPG Key ID: AF8F9EFC56562186
1 changed files with 2 additions and 3 deletions

View File

@ -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',