diff options
Diffstat (limited to 'models/user.php')
-rw-r--r-- | models/user.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/user.php b/models/user.php index f80d5edf..2832a3fb 100644 --- a/models/user.php +++ b/models/user.php @@ -30,12 +30,12 @@ class User extends Base public function getList() { - return array(t('Unassigned')) + $this->db->table(self::TABLE)->asc('username')->listing('id', 'username'); + return $this->db->table(self::TABLE)->asc('username')->listing('id', 'username'); } public function create(array $values) { - unset($values['confirmation']); + if (isset($values['confirmation'])) unset($values['confirmation']); $values['password'] = \password_hash($values['password'], PASSWORD_BCRYPT); return $this->db->table(self::TABLE)->save($values); |