]> git.mxchange.org Git - mailer.git/blobdiff - inc/filters.php
Fixes for last activity in mailid.php
[mailer.git] / inc / filters.php
index 4426a95aa66ce611a60ba19814e5edac3a55e83d..56d82c0f92669b38beb84bdb2296a88faf103638 100644 (file)
@@ -307,12 +307,7 @@ function FILTER_UPDATE_LOGIN_DATA () {
                } // END - if
 
                // Update last module / online time
-               SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `last_module`='%s', `last_online`=UNIX_TIMESTAMP(), `REMOTE_ADDR`='%s' WHERE `userid`=%s LIMIT 1",
-                       array(
-                               getWhat(),
-                               detectRemoteAddr(),
-                               getMemberId()
-                       ), __FUNCTION__, __LINE__);
+               updateLastActivity(getMemberId());
        }  else {
                // Destroy session, we cannot update!
                destroyMemberSession();