Skip to content

Commit

Permalink
One more PHP 8.3 error
Browse files Browse the repository at this point in the history
  • Loading branch information
csev committed Jan 22, 2024
1 parent 175e455 commit e066074
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Core/LTIX.php
Original file line number Diff line number Diff line change
Expand Up @@ -796,11 +796,11 @@ public static function setupSession($needed=self::ALL, $session_object=null, $re
self::wrapped_session_put($session_object, 'HTTP_USER_AGENT', $_SERVER['HTTP_USER_AGENT']);
}
$ipaddr = Net::getIP();
if ( $ipaddr ) {
if ( is_string($ipaddr) ) {
self::wrapped_session_put($session_object, 'REMOTE_ADDR', $ipaddr);
// Check our list of IP address history
// TODO: decrypt
$iphistory = U::get($_COOKIE, "TSUGI-HISTORY");
$iphistory = U::get($_COOKIE, "TSUGI-HISTORY",'');
// Add this IP Address to the Tsugi IP History if it is not there
if ( strpos($iphistory, $ipaddr) === false ) {
$iphistory .= '!' . $ipaddr;
Expand Down

0 comments on commit e066074

Please sign in to comment.