summaryrefslogtreecommitdiffstats
path: root/web/template
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-03-02 08:03:12 -0600
committerLukas Fleischer <archlinux@cryptocrack.de>2011-03-10 18:15:59 +0100
commit80401c6afc165eb2033a92861039fd2fd4d43dcb (patch)
tree4f3019f1c93349dbd5bebc627794c9d0b1cbf4a0 /web/template
parent29b2f3b3990390b4010d8b73a21d11982cbafbec (diff)
downloadaurweb-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/template')
-rw-r--r--web/template/pkg_search_results.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/web/template/pkg_search_results.php b/web/template/pkg_search_results.php
index a096862..c8c29f2 100644
--- a/web/template/pkg_search_results.php
+++ b/web/template/pkg_search_results.php
@@ -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;