user ids are strings
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
dc4b983639
commit
0aeb595784
|
@ -237,9 +237,10 @@ class Database extends Backend implements IUserBackend {
|
||||||
* @return boolean true if user was found, false otherwise
|
* @return boolean true if user was found, false otherwise
|
||||||
*/
|
*/
|
||||||
private function loadUser($uid) {
|
private function loadUser($uid) {
|
||||||
|
$uid = (string) $uid;
|
||||||
if (!isset($this->cache[$uid])) {
|
if (!isset($this->cache[$uid])) {
|
||||||
//guests $uid could be NULL or ''
|
//guests $uid could be NULL or ''
|
||||||
if ($uid === null || $uid === '') {
|
if ($uid === '') {
|
||||||
$this->cache[$uid]=false;
|
$this->cache[$uid]=false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue