From: Florent Bruneau Date: Sat, 26 Jul 2008 13:05:25 +0000 (+0200) Subject: Fix a notice when https is disabled. X-Git-Tag: core/1.0.0~53 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=748b27d2298eb61c212765a9480b0db661577232;p=platal.git Fix a notice when https is disabled. (Fix applis.js) Signed-off-by: Florent Bruneau --- diff --git a/classes/platal.php b/classes/platal.php index b795f14..8158367 100644 --- a/classes/platal.php +++ b/classes/platal.php @@ -250,7 +250,7 @@ class Platal return PL_NOT_FOUND; } global $globals, $session; - if ($this->https && !$_SERVER['HTTPS'] && $globals->core->secure_domain) { + if ($this->https && !@$_SERVER['HTTPS'] && $globals->core->secure_domain) { http_redirect('https://' . $globals->core->secure_domain . $_SERVER['REQUEST_URI']); }