From: Roland Häder Date: Wed, 7 Oct 2009 21:40:06 +0000 (+0000) Subject: Fix for SQL error X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a14286dbeccc671261191608fbab164d0f35c507;p=mailer.git Fix for SQL error --- diff --git a/inc/libs/online_functions.php b/inc/libs/online_functions.php index 47ac57f03f..0348497e65 100644 --- a/inc/libs/online_functions.php +++ b/inc/libs/online_functions.php @@ -74,7 +74,7 @@ function FILTER_UPDATE_ONLINE_LIST () { } // END - if // Now search for the user - $result = SQL_QUERY_ESC("SELECT `timestamp` FROM `{!_MYSQL_PREFIX!}_online` WHERE sid='%s' LIMIT 1", + $result = SQL_QUERY_ESC("SELECT `timestamp` FROM `{!_MYSQL_PREFIX!}_online` WHERE `sid`='%s' LIMIT 1", array(session_id()), __FUNCTION__, __LINE__); // Entry found? @@ -93,7 +93,7 @@ SET `timestamp`=UNIX_TIMESTAMP(), `ip`='%s' WHERE - sid`='%s' + `sid`='%s' LIMIT 1", array( getModule(), @@ -130,5 +130,5 @@ LIMIT 1", array(getConfig('online_timeout')), __FUNCTION__, __LINE__); } -// +// [EOF] ?>