Fix PHP undefined notice in "web/html/packages.php".

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2011-03-30 11:06:20 +02:00
parent 3aa2240b7d
commit 55eb55a75f

View file

@ -81,8 +81,13 @@ if (isset($_GET['ID'])) {
if (!$_GET['ID'] = intval($_GET['ID'])) { if (!$_GET['ID'] = intval($_GET['ID'])) {
print __("Error trying to retrieve package details.")."<br />\n"; print __("Error trying to retrieve package details.")."<br />\n";
} else { } else {
if (isset($_COOKIE["AURSID"])) {
package_details($_GET['ID'], $_COOKIE["AURSID"]); package_details($_GET['ID'], $_COOKIE["AURSID"]);
} }
else {
package_details($_GET['ID'], null);
}
}
} else { } else {
if (!isset($_GET['K']) && !isset($_GET['SB'])) { if (!isset($_GET['K']) && !isset($_GET['SB'])) {
$_GET['SB'] = 'v'; $_GET['SB'] = 'v';