mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
pkgbase.php: Squelch PHP warning
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
eb6ae0c685
commit
cc84e0b7fd
1 changed files with 19 additions and 13 deletions
|
@ -145,6 +145,7 @@ if (check_token()) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isset($base_id)) {
|
||||||
$pkgs = pkgbase_get_pkgnames($base_id);
|
$pkgs = pkgbase_get_pkgnames($base_id);
|
||||||
if (!$output && count($pkgs) == 1) {
|
if (!$output && count($pkgs) == 1) {
|
||||||
/* Not a split package. Redirect to the package page. */
|
/* Not a split package. Redirect to the package page. */
|
||||||
|
@ -156,6 +157,9 @@ if (!$output && count($pkgs) == 1) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$details = pkgbase_get_details($base_id);
|
$details = pkgbase_get_details($base_id);
|
||||||
|
} else {
|
||||||
|
$details = array();
|
||||||
|
}
|
||||||
html_header($title, $details);
|
html_header($title, $details);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
@ -169,11 +173,13 @@ html_header($title, $details);
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
include('pkg_search_form.php');
|
include('pkg_search_form.php');
|
||||||
|
if (isset($base_id)) {
|
||||||
if (isset($_COOKIE["AURSID"])) {
|
if (isset($_COOKIE["AURSID"])) {
|
||||||
pkgbase_display_details($base_id, $details, $_COOKIE["AURSID"]);
|
pkgbase_display_details($base_id, $details, $_COOKIE["AURSID"]);
|
||||||
} else {
|
} else {
|
||||||
pkgbase_display_details($base_id, $details, null);
|
pkgbase_display_details($base_id, $details, null);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
html_footer(AURWEB_VERSION);
|
html_footer(AURWEB_VERSION);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue