} // 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();