]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/online_functions.php
Dependencies added (required)
[mailer.git] / inc / libs / online_functions.php
index ec0dffee1fc24f135b9b8c0d9608275d24f1d796..85c04334cd45cec88542e884df44415176564c44 100644 (file)
@@ -14,8 +14,6 @@
  * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
  * $Author::                                                          $ *
- * Needs to be in all Files and every File needs "svn propset           *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
@@ -97,7 +95,7 @@ LIMIT 1",
                        getModule(),
                        $action,
                        getWhat(),
-                       $userid,
+                       makeDatabaseUserId($userid),
                        makeDatabaseUserId(determineReferalId()),
                        $isMember,
                        $isAdmin,
@@ -106,12 +104,12 @@ LIMIT 1",
                ), __FUNCTION__, __LINE__);
        } else {
                // No entry does exists so we simply add it!
-               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')",
+               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(),
                                $action,
                                getWhat(),
-                               $userid,
+                               makeDatabaseUserId($userid),
                                makeDatabaseUserId(determineReferalId()),
                                $isMember,
                                $isAdmin,