simplified boolean expression

This commit is contained in:
Andreas Gohr 2020-06-30 09:20:35 +02:00
parent d40ef125fc
commit 09f71c987a
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ if (preg_match('/^\/_media\/(.*)/', $_SERVER['SCRIPT_NAME'], $m)) {
$request_path = preg_split('/\?/', $_SERVER['REQUEST_URI'], 2)[0];
if (isset($_SERVER['PATH_INFO'])) {
$_GET['id'] = $_SERVER['PATH_INFO'];
} elseif (!($request_path == '/' || $request_path == '/index.php')) {
} elseif ($request_path != '/' && $request_path != '/index.php') {
$_GET['id'] = $_SERVER['SCRIPT_NAME'];
}