summaryrefslogtreecommitdiff
path: root/web/html/packages.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2011-04-04 23:31:19 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2011-04-04 23:31:19 +0200
commitd142ca405301c88f9467ba2aa9534952d336095e (patch)
tree1bdb9d9ce80a456e5a154f56a0239edd7cbf0bd8 /web/html/packages.php
parent2005a2889cebc817ad4bae6134aac109165fe595 (diff)
Fix PHP warning when browsing a non-existent package.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html/packages.php')
-rw-r--r--web/html/packages.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/web/html/packages.php b/web/html/packages.php
index 139b9c8..abc6637 100644
--- a/web/html/packages.php
+++ b/web/html/packages.php
@@ -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'])) {
- $title = $pkgname;
- }
+if (isset($_GET['ID']) && ($pkgname = pkgname_from_id($_GET['ID']))) {
+ $title = $pkgname;
} else if (!empty($_GET['K'])) {
$title = __("Search Criteria") . ": " . $_GET['K'];
} else {