From a14286dbeccc671261191608fbab164d0f35c507 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 7 Oct 2009 21:40:06 +0000 Subject: [PATCH] Fix for SQL error --- inc/libs/online_functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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] ?> -- 2.30.2