From ea13b80f93469d6d7790e02bfc4983918daa0315 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 9 Oct 2011 18:51:34 -0400 Subject: Fix bug in Users::getIndexAttribs() where auth_name was being omitted. --- src/controllers/Users.class.php | 7 +++---- 1 file 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; } -- cgit v1.2.3-2-g168b