]> git.mxchange.org Git - mailer.git/commitdiff
Fix for SQL error
authorRoland Häder <roland@mxchange.org>
Wed, 7 Oct 2009 21:40:06 +0000 (21:40 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 7 Oct 2009 21:40:06 +0000 (21:40 +0000)
inc/libs/online_functions.php

index 47ac57f03fe85680e70505840017a0db6d0889b5..0348497e653d61eabc66243f9e87ac155c72e31a 100644 (file)
@@ -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]
 ?>