Fix small bugs

This commit is contained in:
Amine Ben hammou
2019-03-19 17:16:31 +01:00
committed by M. Shull
parent 17949d06d5
commit fee3b58e4e
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ class UserFlagsController {
function get($name) {
$this->ensureLoaded();
if (empty($this->data[$name])) {
if (!isset($this->data[$name])) {
return $this->defaults[$name];
}
return $this->data[$name];