From 80401c6afc165eb2033a92861039fd2fd4d43dcb Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 2 Mar 2011 08:03:12 -0600 Subject: More PHP Notice undefined fixups Signed-off-by: Dan McGee Signed-off-by: Lukas Fleischer --- web/lib/acctfuncs.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'web/lib') diff --git a/web/lib/acctfuncs.inc b/web/lib/acctfuncs.inc index d5137be..0cd5d0e 100644 --- a/web/lib/acctfuncs.inc +++ b/web/lib/acctfuncs.inc @@ -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; -- cgit v1.2.3-70-g09d2