Split out the search form from pkg_search_page()

This makes it easier to display search results without showing the
search form.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Lukas Fleischer 2017-02-03 23:52:31 +01:00
parent 6cb8c041bc
commit ac745f656d
2 changed files with 2 additions and 3 deletions

View file

@ -80,8 +80,9 @@ $(document).ready(function() {
</script>
<?php
include('pkg_search_form.php');
if (isset($pkgid)) {
include('pkg_search_form.php');
if ($pkgid) {
if (isset($_COOKIE["AURSID"])) {
pkg_display_details($pkgid, $details, $_COOKIE["AURSID"]);