summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2011-03-30 11:06:20 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2011-03-30 11:06:20 +0200
commit55eb55a75faf38586ba646ac7e446db700d11ada (patch)
tree0307902e53f38ac26c416e8ad6f40725eccb1800 /web
parent3aa2240b7dc281b37716a29025b08baf1318d059 (diff)
downloadaurweb-55eb55a75faf38586ba646ac7e446db700d11ada.tar.xz
Fix PHP undefined notice in "web/html/packages.php".
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web')
-rw-r--r--web/html/packages.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/web/html/packages.php b/web/html/packages.php
index fe69449..139b9c8 100644
--- a/web/html/packages.php
+++ b/web/html/packages.php
@@ -81,7 +81,12 @@ if (isset($_GET['ID'])) {
if (!$_GET['ID'] = intval($_GET['ID'])) {
print __("Error trying to retrieve package details.")."<br />\n";
} else {
- package_details($_GET['ID'], $_COOKIE["AURSID"]);
+ if (isset($_COOKIE["AURSID"])) {
+ package_details($_GET['ID'], $_COOKIE["AURSID"]);
+ }
+ else {
+ package_details($_GET['ID'], null);
+ }
}
} else {
if (!isset($_GET['K']) && !isset($_GET['SB'])) {