From e7fa200a84588db39443a04721fd030f4b46dd52 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)