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

@ -88,7 +88,11 @@ if (isset($_GET['ID'])) {
$_GET['SB'] = 'v';
$_GET['SO'] = 'd';
}
if (isset($_COOKIE["AURSID"])) {
pkg_search_page($_COOKIE["AURSID"]);
} else {
pkg_search_page();
}
}
html_footer(AUR_VERSION);

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;

View file

@ -43,7 +43,11 @@
</tr>
<?php
if (isset($_COOKIE['AURSID'])) {
$atype = account_from_sid($_COOKIE['AURSID']);
} else {
$atype = "";
}
for ($i = 0; $row = mysql_fetch_assoc($result); $i++) {
(($i % 2) == 0) ? $c = "data1" : $c = "data2";
if ($row["OutOfDateTS"] !== NULL): $c = "outofdate"; endif;