} // END - if
// Empty session?
- if (session_id() == '') {
+ if (!isSessionValid()) {
// This is invalid here!
reportBug(__FUNCTION__, __LINE__, 'Invalid session.');
} // END - if
$userid = NULL;
$isMember = convertBooleanToYesNo(isMember());
$isAdmin = convertBooleanToYesNo(isAdmin());
- $action = getActionFromModuleWhat(getModule(), getWhat(false));
+ $action = getActionFromModuleWhat(getModule(), getWhat(FALSE));
// Valid userid?
if (isMember()) {
array(
getModule(),
$action,
- getWhat(false),
+ getWhat(FALSE),
convertZeroToNull($userid),
convertZeroToNull(determineReferralId()),
$isMember,
), __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(false),
+ getWhat(FALSE),
convertZeroToNull($userid),
convertZeroToNull(determineReferralId()),
$isMember,