Fixed: Error when 'Display name' not set

This commit is contained in:
Marcin Łojewski
2018-09-19 21:13:42 +02:00
parent cfdea51393
commit bb4b652a51
2 changed files with 3 additions and 1 deletions

View File

@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## [Unreleased] ## [Unreleased]
### Fixed
- Error when 'Display name' not set
## [4.0.1] - 2018-08-11 ## [4.0.1] - 2018-08-11
### Fixed ### Fixed

View File

@@ -92,7 +92,7 @@ class QueryProvider implements \ArrayAccess
(empty($gAdmin) ? "false" : $gAdmin) . " AS admin"; (empty($gAdmin) ? "false" : $gAdmin) . " AS admin";
$userColumns $userColumns
= "$uUID AS uid, " . = "$uUID AS uid, " .
(empty($uName) ? "null" : $uName) . " AS name, " . (empty($uName) ? $uUID : $uName) . " AS name, " .
(empty($uEmail) ? "null" : $uEmail) . " AS email, " . (empty($uEmail) ? "null" : $uEmail) . " AS email, " .
(empty($uQuota) ? "null" : $uQuota) . " AS quota, " . (empty($uQuota) ? "null" : $uQuota) . " AS quota, " .
(empty($uHome) ? "null" : $uHome) . " AS home, " . (empty($uHome) ? "null" : $uHome) . " AS home, " .