Fix a notice when https is disabled.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 26 Jul 2008 13:05:25 +0000 (15:05 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 26 Jul 2008 13:11:21 +0000 (15:11 +0200)
(Fix applis.js)

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
classes/platal.php

index b795f14..8158367 100644 (file)
@@ -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']);
         }