diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-04-04 23:31:19 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-04-04 23:31:19 +0200 |
commit | d142ca405301c88f9467ba2aa9534952d336095e (patch) | |
tree | 1bdb9d9ce80a456e5a154f56a0239edd7cbf0bd8 | |
parent | 2005a2889cebc817ad4bae6134aac109165fe595 (diff) | |
download | aurweb-d142ca405301c88f9467ba2aa9534952d336095e.tar.xz |
Fix PHP warning when browsing a non-existent package.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
-rw-r--r-- | web/html/packages.php | 6 |
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 { |