This commit is contained in:
Jeroen De Meerleer 2018-09-14 15:16:00 +02:00
parent 8b767ba177
commit e5494da72c
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
1 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,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;
@ -43,7 +43,7 @@ if ($_SERVER["REQUEST_METHOD"] == "GET") {
}
$message = "";
if ($_GET["message"]) {
if (isset($_GET["message"])) {
switch ($_GET["message"]) {
case "added":
$message = "The cronjob has been added"; break;