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>
This commit is contained in:
Lukas Fleischer 2017-02-15 21:59:20 +01:00
parent 92049e8061
commit e724b123ec

View file

@ -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();