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

@ -43,7 +43,11 @@
</tr>
<?php
$atype = account_from_sid($_COOKIE['AURSID']);
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;