From: Roland Häder Date: Sun, 22 Aug 2010 13:45:09 +0000 (+0000) Subject: Opps... :( X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4a62dbba596613605d51574698c08c9070e46a72;p=mailer.git Opps... :( --- diff --git a/inc/libs/user_functions.php b/inc/libs/user_functions.php index 187afc7615..b568c879ad 100644 --- a/inc/libs/user_functions.php +++ b/inc/libs/user_functions.php @@ -543,7 +543,7 @@ function insertUserStatsRecord ($userid, $statsType, $statsData) { } // Confirms a user account -function doConfirmUserAccount () { +function doConfirmUserAccount ($hash) { // Init content $content = array( 'message' => '{--GUEST_CONFIRMED_FAILED--}', @@ -555,7 +555,7 @@ function doConfirmUserAccount () { // Search for an unconfirmed or confirmed account $result = SQL_QUERY_ESC("SELECT `userid`, `email`, `refid` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `user_hash`='%s' AND (`status`='UNCONFIRMED' OR `status`='CONFIRMED') LIMIT 1", - array(getRequestParameter('hash')), __FILE__, __LINE__); + array($hash), __FILE__, __LINE__); if (SQL_NUMROWS($result) == 1) { // Ok, he want's to confirm now so we load some data list($userid, $email, $refid) = SQL_FETCHROW($result); @@ -580,7 +580,9 @@ WHERE `user_hash`='%s' AND `status`='UNCONFIRMED' LIMIT 1", - array(getRequestParameter('hash')), __FILE__, __LINE__); + array($hash), __FILE__, __LINE__); + + // Was it updated? if (SQL_AFFECTEDROWS() == 1) { // Send email if updated $message = loadEmailTemplate('confirm-member', $content, bigintval($userid));