- XDB::execute("INSERT INTO logger.sessions
- SET uid={?}, host={?}, ip={?}, forward_ip={?}, forward_host={?}, browser={?}, suid={?}, flags={?}",
+ $uid = ($uid == 0) ? null : $uid;
+ $suid = ($suid == 0) ? null : $suid;
+ XDB::execute("INSERT INTO log_sessions
+ SET uid={?}, host={?}, ip={?}, forward_ip={?}, forward_host={?}, browser={?}, suid={?}, flags={?}",