simplified boolean expression
This commit is contained in:
parent
d40ef125fc
commit
09f71c987a
|
@ -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'];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue