We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c77a3c commit 24406afCopy full SHA for 24406af
.router.php
@@ -1,7 +1,7 @@
1
<?php
2
$_SERVER["SERVER_ADDR"] = $_SERVER["HTTP_HOST"];
3
4
-$filename = isset($_SERVER["PATH_INFO"]) ? $_SERVER["PATH_INFO"] : $_SERVER["SCRIPT_NAME"];
+$filename = $_SERVER["PATH_INFO"] ?? $_SERVER["SCRIPT_NAME"];
5
6
if (file_exists($_SERVER["DOCUMENT_ROOT"] . $filename)) {
7
/* This could be an image or whatever, so don't try to compress it */
images/logo.php
@@ -1,6 +1,6 @@
-$refresh = isset($_GET['refresh']) ? true : false;
+$refresh = isset($_GET['refresh']);
// Be 100% sure the timezone is set
if (ini_get('date.timezone') === '' && function_exists('date_default_timezone_set')) {
0 commit comments