diff options
| author | Fredrick Brennan <admin@8chan.co> | 2014-06-10 23:09:39 +0000 |
|---|---|---|
| committer | Fredrick Brennan <admin@8chan.co> | 2014-06-10 23:09:39 +0000 |
| commit | 4f070d16e562d1b90f5b7fd171b7fd243dde36bd (patch) | |
| tree | 11db8168795262847ccf23c4d8c4fe5263d511f0 | |
| parent | 5a02cd61db118d08fe76f880cf57606b083fcea7 (diff) | |
Congrats, you broke the mod page on non-secured servers @jdh8
| -rw-r--r-- | inc/mod/pages.php | 2 |
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) |
