php – Help me place the brackets correctly please
Question
When installing the next plugin, I get a fatal error:
Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
in this code:
$remote_addr = getenv('HTTP_CLIENT_IP')?getenv('HTTP_CLIENT_IP'):
getenv('HTTP_X_FORWARDED_FOR')?getenv('HTTP_X_FORWARDED_FOR'):
getenv('HTTP_X_FORWARDED')?getenv('HTTP_X_FORWARDED'):
getenv('HTTP_FORWARDED_FOR')?getenv('HTTP_FORWARDED_FOR'):
getenv('HTTP_FORWARDED')?getenv('HTTP_FORWARDED'):getenv('REMOTE_ADDR');
Most likely due to the transition to php8.
Help me place the brackets correctly please.
0
2 weeks
2023-09-16T12:02:23-05:00
2023-09-16T12:02:23-05:00 0 Answers
0 views
0
Leave an answer