summaryrefslogtreecommitdiff
path: root/inc/mod/pages.php
diff options
context:
space:
mode:
authorFredrick Brennan <admin@8chan.co>2014-06-10 23:09:39 +0000
committerFredrick Brennan <admin@8chan.co>2014-06-10 23:09:39 +0000
commit4f070d16e562d1b90f5b7fd171b7fd243dde36bd (patch)
tree11db8168795262847ccf23c4d8c4fe5263d511f0 /inc/mod/pages.php
parent5a02cd61db118d08fe76f880cf57606b083fcea7 (diff)
Congrats, you broke the mod page on non-secured servers @jdh8
Diffstat (limited to 'inc/mod/pages.php')
-rw-r--r--inc/mod/pages.php2
1 files changed, 1 insertions, 1 deletions
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)