Check first if value exists

This commit is contained in:
Marcel Kapfer (mmk2410) 2016-06-03 15:25:59 +02:00
parent 352095a6d2
commit 0baffcc5cf
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
// License: MIT License
// SSL Verification
if ($settings["rcc"]["debug"] != "on") {
if (isset($settings["rcc"]["debug"]) && $settings["rcc"]["debug"] != "on") {
if (empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] != "on") {
header('HTTP/1.1 400 Bad Request');
exit();