summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2017-02-15 21:59:20 +0100
committerLukas Fleischer <lfleischer@archlinux.org>2017-02-15 22:01:34 +0100
commite724b123ec003aab4a24ace4e7eea934a6dad395 (patch)
tree8694a12247a9a9f52167c133debb92e337da026d
parent92049e8061d71dfe89b4cbd53a39d7ae74ac328a (diff)
downloadaur-e724b123ec003aab4a24ace4e7eea934a6dad395.tar.gz
aur-e724b123ec003aab4a24ace4e7eea934a6dad395.tar.xz
pkgbase.php: Add default title
Instead of triggering a PHP warning and using an empty title if no package base is specified, use a default title. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
-rw-r--r--web/html/pkgbase.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/html/pkgbase.php b/web/html/pkgbase.php
index 11fdf74a..23aa6c83 100644
--- a/web/html/pkgbase.php
+++ b/web/html/pkgbase.php
@@ -30,7 +30,7 @@ if (!isset($base_id) || !isset($pkgbase_name)) {
}
/* Set the title to package base name. */
-$title = $pkgbase_name;
+$title = isset($pkgbase_name) ? $pkgbase_name : __("Package Bases");
/* Grab the list of package base IDs to be operated on. */
$ids = array();