From f86ca917d7edf4af53af899f52c8c083a854f9ce 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 f2e16ad..eccc189 100644 --- a/includes/auth/auth.php +++ b/includes/auth/auth.php @@ -259,7 +259,8 @@ class Authentication $user = $this->db->query_first("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