From 2a9b4dfe01ba8a77c367e4d72034bf2e17748d6b Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 14 Feb 2009 13:37:31 -0500 Subject: [PATCH] Fix an issue where after creating a Bugdar user in _fetchBugdarUserFromAuthUser() the returned array would be incomplete * includes/auth/auth.php: (Authentication::_fetchBugdarUserFromAuthUser): If we call _createBugdarUser() don't return the result of that, but call _fetchBugdarUserFromAuthUser again --- includes/auth/auth.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/auth/auth.php b/includes/auth/auth.php index f7e129f..a253228 100644 --- a/includes/auth/auth.php +++ b/includes/auth/auth.php @@ -249,7 +249,8 @@ class Authentication $user = $this->db->queryFirst("SELECT * FROM " . TABLE_PREFIX . "user WHERE authid = '" . $this->authUser[ $this->fieldMap['authid'] ] . "'"); if (!$user) { - return $this->_createBugdarUser(); + $this->_createBugdarUser(); + return $this->_fetchBugdarUserFromAuthUser(); } return $user; } -- 2.43.5