From 5421c05aae8b1d8794aca515549ec95416450f23 Mon Sep 17 00:00:00 2001 From: kent1 Date: Sun, 6 Aug 2017 23:31:22 +0200 Subject: [PATCH] Error on isset for X_FORWARDED_PROTO Should be `isset($_SERVER["HTTP_X_FORWARDED_PROTO"])` and not `!isset($_SERVER["HTTP_X_FORWARDED_PROTO"])` Avoid a notice : `PHP Notice: Undefined index: HTTP_X_FORWARDED_PROTO in /usr/share/alternc/panel/class/config.php on line 170` --- bureau/class/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bureau/class/config.php b/bureau/class/config.php index 6af94001..ff578321 100755 --- a/bureau/class/config.php +++ b/bureau/class/config.php @@ -167,7 +167,7 @@ $err = new m_err(); $authip = new m_authip(); $hooks = new m_hooks(); -if (!isset($_SERVER["HTTP_X_FORWARDED_PROTO"]) && $_SERVER["HTTP_X_FORWARDED_PROTO"]=="https") { +if (isset($_SERVER["HTTP_X_FORWARDED_PROTO"]) && $_SERVER["HTTP_X_FORWARDED_PROTO"]=="https") { $_SERVER["HTTPS"]="on"; }