X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Flibs%2Fonline_functions.php;h=ec0dffee1fc24f135b9b8c0d9608275d24f1d796;hb=496a9a8159ba42133179e0535afbd5622c3b39d8;hp=479976c181162b71e906188e3a4b749abd11c015;hpb=094d18e337d4f734ef538ce251fa74223fff963d;p=mailer.git diff --git a/inc/libs/online_functions.php b/inc/libs/online_functions.php index 479976c181..ec0dffee1f 100644 --- a/inc/libs/online_functions.php +++ b/inc/libs/online_functions.php @@ -57,9 +57,10 @@ function FILTER_UPDATE_ONLINE_LIST () { $userid = '0'; $isMember = 'N'; $isAdmin = 'N'; + $action = getActionFromModuleWhat(getModule(), getWhat()); // Valid userid? - if ((isMemberIdSet()) && (getMemberId() > 0) && (isMember())) { + if (isMember()) { // Is valid user $userid = getMemberId(); $isMember = 'Y'; @@ -94,10 +95,10 @@ WHERE LIMIT 1", array( getModule(), - getAction(), + $action, getWhat(), $userid, - determineReferalId(), + makeDatabaseUserId(determineReferalId()), $isMember, $isAdmin, detectRemoteAddr(), @@ -108,10 +109,10 @@ LIMIT 1", SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_online` (`module`, `action`, `what`, `userid`, `refid`, `is_member`, `is_admin`, `timestamp`, `sid`, `ip`) VALUES ('%s','%s','%s', %s, '%s', '%s','%s', UNIX_TIMESTAMP(), '%s','%s')", array( getModule(), - getAction(), + $action, getWhat(), $userid, - determineReferalId(), + makeDatabaseUserId(determineReferalId()), $isMember, $isAdmin, session_id(),