summaryrefslogtreecommitdiffstats
path: root/web/html
diff options
context:
space:
mode:
Diffstat (limited to 'web/html')
-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 {