More PHP Notice undefined fixups

Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
Dan McGee 2011-03-02 08:03:12 -06:00 committed by Lukas Fleischer
parent 29b2f3b399
commit 80401c6afc
3 changed files with 12 additions and 3 deletions

View file

@ -663,7 +663,8 @@ function try_login() {
if ($logged_in) {
# set our SID cookie
if ($_POST['remember_me'] == "on") {
if (isset($_POST['remember_me']) &&
$_POST['remember_me'] == "on") {
# Set cookies for 30 days.
$cookie_time = time() + $PERSISTENT_COOKIE_TIMEOUT;