Skip to content

Commit

Permalink
Fix: deal with possible null index
Browse files Browse the repository at this point in the history
This will be a long voyage in porting the whole application up to PHP 7  standards... bear with me while I struggle with these chores!
  • Loading branch information
GwynethLlewelyn committed Apr 23, 2022
1 parent d3f7776 commit d7088b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions restbot-tools/php-restbot-api/include/funktions.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 33,9 @@ function genPipeError($error)
"auth",
1,
"Authentication issue from " .
$_SERVER["REMOTE_ADDR"] .
$_SERVER["REMOTE_ADDR"] ?: "(unknown remote address)" .
" on " .
$_SERVER["REQUEST_URI"]
$_SERVER["REQUEST_URI"] ?: "(unknown URI request)"
);
} elseif ($error == "db") {
print "DB\n";
Expand Down

0 comments on commit d7088b4

Please sign in to comment.