summaryrefslogtreecommitdiffstats
path: root/web/lib
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-03-02 15:03:12 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2011-03-10 18:15:59 +0100
commit80401c6afc165eb2033a92861039fd2fd4d43dcb (patch)
tree4f3019f1c93349dbd5bebc627794c9d0b1cbf4a0 /web/lib
parent29b2f3b3990390b4010d8b73a21d11982cbafbec (diff)
downloadaur-80401c6afc165eb2033a92861039fd2fd4d43dcb.tar.gz
aur-80401c6afc165eb2033a92861039fd2fd4d43dcb.tar.xz
More PHP Notice undefined fixups
Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/acctfuncs.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/lib/acctfuncs.inc b/web/lib/acctfuncs.inc
index d5137be6..0cd5d0ed 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;