]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/online_functions.php
More usage of EL
[mailer.git] / inc / libs / online_functions.php
index 14c8503b624deafad86e08036c9207a9415197c0..ec0dffee1fc24f135b9b8c0d9608275d24f1d796 100644 (file)
@@ -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,7 +95,7 @@ WHERE
 LIMIT 1",
                array(
                        getModule(),
-                       getAction(),
+                       $action,
                        getWhat(),
                        $userid,
                        makeDatabaseUserId(determineReferalId()),
@@ -108,7 +109,7 @@ 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,
                                makeDatabaseUserId(determineReferalId()),