From cc733388b318c319520c42680595155256340e57 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 5 Oct 2009 22:35:28 +0000 Subject: [PATCH] SQL in login welcome screen fixed --- inc/libs/user_functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/libs/user_functions.php b/inc/libs/user_functions.php index ec3958a645..4519800782 100644 --- a/inc/libs/user_functions.php +++ b/inc/libs/user_functions.php @@ -325,7 +325,7 @@ function USER_DO_LOGIN ($uid, $passwd) { if ((GET_EXT_VERSION('bonus') >= '0.2.2') && ($probe >= getConfig('login_timeout'))) { // Add login bonus to user's account $add = sprintf(", `login_bonus`=`login_bonus`+%s", - (float)getConfig('login_bonus') + (float)getConfig('login_bonus') ); $GLOBALS['bonus_payed'] = true; @@ -343,7 +343,7 @@ function USER_DO_LOGIN ($uid, $passwd) { // Try to set session data (which shall normally always work!) if ((setSession('userid', $uid )) && (setSession('u_hash', $content['hash']))) { // Update database records - SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_user_data` SET `total_logins`=`total_logins +1" . $add . " WHERE `userid`=%s LIMIT 1", + SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_user_data` SET `total_logins`=`total_logins`+1" . $add . " WHERE `userid`=%s LIMIT 1", array($uid), __FUNCTION__, __LINE__); if (SQL_AFFECTEDROWS() == 1) { // Procedure to checking for login data -- 2.39.5