I have received a plugin for a system (Moodle) and, on install, get the following error in the error logs:
The offending line of code is:
$s = empty($_SERVER["HTTPS"]) ? ''
: ($_SERVER["HTTPS"] == "on") ? "s"
: "";
I haven't coded in PHP for a while now and have just updated the server to PHP 8.0
I cannot see what is wrong in this section; anyone have an idea?
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.