Skip to content

Commit bb2b74a

Browse files
committed
check for SERVER_TYPE
1 parent 275982b commit bb2b74a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

public/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
$app->get('/', function () use ($app) {
88
// This if-block detects if mod_rewrite is enabled.
99
// This is just an anti-noob device, remove it if you know how to read the docs and/or breathe through your nose.
10-
if ($_SERVER['SERVER_TYPE'] && ($_SERVER['SERVER_TYPE'] == "Apache") && !isset($_SERVER['HTTP_MOD_REWRITE'])) {
10+
if (isset($_SERVER['SERVER_TYPE']) && ($_SERVER['SERVER_TYPE'] == "Apache") && !isset($_SERVER['HTTP_MOD_REWRITE'])) {
1111
$app->render('common/bad-config.html', [
1212
'page' => [
1313
'author' => $app->site->author,

0 commit comments

Comments
 (0)