Browse Source

Begone!!

main
Jeroen De Meerleer 2 years ago
parent
commit
548341ed5e
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      index.php

+ 2
- 2
index.php View File

@ -42,7 +42,7 @@ if ($_SERVER["REQUEST_METHOD"] == "GET") {
$twig = new Twig_Environment($loader, array('cache' => 'cache', "debug" => true));
$error = "";
if ($_GET["error"]) {
if (isset($_GET["error"])) {
switch ($_GET["error"]) {
case "emptyfields":
$error = "Some fields were empty"; break;
@ -52,7 +52,7 @@ if ($_SERVER["REQUEST_METHOD"] == "GET") {
}
echo $twig->render('index.html.twig', array("message" => $message, "error" => $error));
echo $twig->render('index.html.twig', array("error" => $error));
}
elseif ($_SERVER["REQUEST_METHOD"] == "POST") {


Loading…
Cancel
Save