summaryrefslogtreecommitdiffstats
path: root/web/html/packages.php
diff options
context:
space:
mode:
Diffstat (limited to 'web/html/packages.php')
-rw-r--r--web/html/packages.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/web/html/packages.php b/web/html/packages.php
index 38a2e296..1b892781 100644
--- a/web/html/packages.php
+++ b/web/html/packages.php
@@ -21,7 +21,11 @@ if (!isset($pkgid) || !isset($pkgname)) {
$details = array();
if (isset($pkgid)) {
$details = pkg_get_details($pkgid);
- $pkgname = $details['Name'];
+ if (isset($details['Name'])) {
+ $pkgname = $details['Name'];
+ } else {
+ $pkgname = null;
+ }
} else {
unset($pkgname);
}