mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Fix PHP warning when browsing a non-existent package.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
2005a2889c
commit
d142ca4053
1 changed files with 2 additions and 4 deletions
|
@ -8,10 +8,8 @@ include_once('pkgfuncs.inc'); # package specific functions
|
|||
check_sid(); # see if they're still logged in
|
||||
|
||||
# Set the title to the current query if required
|
||||
if (isset($_GET['ID'])) {
|
||||
if ($pkgname = pkgname_from_id($_GET['ID'])) {
|
||||
if (isset($_GET['ID']) && ($pkgname = pkgname_from_id($_GET['ID']))) {
|
||||
$title = $pkgname;
|
||||
}
|
||||
} else if (!empty($_GET['K'])) {
|
||||
$title = __("Search Criteria") . ": " . $_GET['K'];
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue