diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-10-09 18:51:34 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-10-09 18:51:34 -0400 |
commit | 51226909b3f371245485b29b84a32aa1013a79b0 (patch) | |
tree | f0e619f10c8a0d09a9e14dad6eb58dabd8ee61e2 | |
parent | 0656229285c8d7eaeda70f2a1b0ed1f761522f8a (diff) |
Fix bug in Users::getIndexAttribs() where auth_name was being omitted.
-rw-r--r-- | src/controllers/Users.class.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/controllers/Users.class.php b/src/controllers/Users.class.php index dbd5120..447a70f 100644 --- a/src/controllers/Users.class.php +++ b/src/controllers/Users.class.php @@ -342,8 +342,8 @@ class Users extends Controller { $user = Auth::getObj(Login::isLoggedIn()); $attribs = array(); + $attribs[] = $this->attrib('auth_uid', 'UID'); if ($user->isUser()) { - $attribs[] = $this->attrib('auth_uid', 'UID'); $attribs[] = $this->attrib('auth_user', 'Active', 'bool'); if ($user->isAdmin()) { $attribs[] = $this->attrib('auth_admin', 'Admin', 'bool'); @@ -354,10 +354,9 @@ class Users extends Controller { $attribs[] = $this->attrib('hsclass','Class of'); $attribs[] = $this->attrib('phone','Phone number'); $attribs[] = $this->attrib('email','Email'); - } else { - $attribs[] = $this->attrib('auth_uid', 'UID'); - $attribs[] = $this->attrib('auth_name', 'Username'); } + $attribs[] = $this->attrib('auth_name', 'Username'); + return $attribs; } |