From ce244b8079ff733cbdf690ce5aa0be59159321d4 Mon Sep 17 00:00:00 2001 From: Neil Blakey-Milner Date: Wed, 25 May 2005 20:52:35 +0000 Subject: [PATCH] Use DBUtil for this query, it was not database-portable previously. --- lib/authentication/Authenticator.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/authentication/Authenticator.inc b/lib/authentication/Authenticator.inc index b8c28c7..6e58a0f 100644 --- a/lib/authentication/Authenticator.inc +++ b/lib/authentication/Authenticator.inc @@ -40,7 +40,9 @@ class Authenticator { $aUserDetails = array(); // retrieve the userID - $iUserID = lookupID($default->users_table, "BINARY username", "$sUserName"); + $sSQL = "SELECT id FROM $default->users_table WHERE username = ?"; + $aParams = array($sUserName); + $iUserID = DBUtil::getOneResultKey(array($sSQL, $aParams), 'id'); if ($iUserID) { $oUser = & User::get($iUserID); -- libgit2 0.21.4