From 4f070d16e562d1b90f5b7fd171b7fd243dde36bd Mon Sep 17 00:00:00 2001 From: Fredrick Brennan Date: Tue, 10 Jun 2014 23:09:39 +0000 Subject: [PATCH] Congrats, you broke the mod page on non-secured servers @jdh8 --- inc/mod/pages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/mod/pages.php b/inc/mod/pages.php index d340dc44..3cb94619 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -150,7 +150,7 @@ function mod_dashboard() { $latest = false; } - setcookie('update', serialize($latest), time() + $config['check_updates_time'], $config['cookies']['jail'] ? $config['cookies']['path'] : '/', null, $_SERVER['HTTPS'], true); + setcookie('update', serialize($latest), time() + $config['check_updates_time'], $config['cookies']['jail'] ? $config['cookies']['path'] : '/', null, (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']), true); } if ($latest)