This commit is contained in:
Kévin Dunglas
2018-10-12 09:43:07 +02:00
parent 63ec91caed
commit cdb5864f65
2 changed files with 2 additions and 2 deletions
@@ -24,7 +24,7 @@ if ($debug) {
Debug::enable();
}
if (PHP_SAPI === 'cli-server' && '/index.php' !== $_SERVER['SCRIPT_NAME'] && is_file(__DIR__.$_SERVER['SCRIPT_NAME'])) {
if ('cli-server' === PHP_SAPI && '/index.php' !== $_SERVER['SCRIPT_NAME'] && is_file(__DIR__.$_SERVER['SCRIPT_NAME'])) {
return false;
}
@@ -24,7 +24,7 @@ if ($debug) {
Debug::enable();
}
if (PHP_SAPI === 'cli-server' && '/index.php' !== $_SERVER['SCRIPT_NAME'] && is_file(__DIR__.$_SERVER['SCRIPT_NAME'])) {
if ('cli-server' === PHP_SAPI && '/index.php' !== $_SERVER['SCRIPT_NAME'] && is_file(__DIR__.$_SERVER['SCRIPT_NAME'])) {
return false;
}