mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Fix PHP undefined notice in "web/html/packages.php".
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
3aa2240b7d
commit
55eb55a75f
1 changed files with 6 additions and 1 deletions
|
@ -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';
|
||||||
|
|
Loading…
Add table
Reference in a new issue