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

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();