Fix PHP warning when browsing a non-existent package.

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2011-04-04 23:31:19 +02:00
parent 2005a2889c
commit d142ca4053

View file

@ -8,10 +8,8 @@ include_once('pkgfuncs.inc'); # package specific functions
check_sid(); # see if they're still logged in check_sid(); # see if they're still logged in
# Set the title to the current query if required # Set the title to the current query if required
if (isset($_GET['ID'])) { if (isset($_GET['ID']) && ($pkgname = pkgname_from_id($_GET['ID']))) {
if ($pkgname = pkgname_from_id($_GET['ID'])) { $title = $pkgname;
$title = $pkgname;
}
} else if (!empty($_GET['K'])) { } else if (!empty($_GET['K'])) {
$title = __("Search Criteria") . ": " . $_GET['K']; $title = __("Search Criteria") . ": " . $_GET['K'];
} else { } else {