Undefined variable

This commit is contained in:
Pierre Rudloff 2016-10-26 17:16:17 +02:00
parent 6133b6a26e
commit 2d0860e42f

View file

@ -3,7 +3,7 @@
require_once __DIR__.'/vendor/autoload.php';
use Alltube\Controller\FrontController;
if (strpos($_SERVER['REQUEST_URI'], '/index.php') !== false) {
if (isset($_SERVER['REQUEST_URI']) && strpos($_SERVER['REQUEST_URI'], '/index.php') !== false) {
header('Location: '.str_ireplace('/index.php', '/', $_SERVER['REQUEST_URI']));
die;
}