From a076447c7c262f470afd50328b7bea88143dff11 Mon Sep 17 00:00:00 2001 From: Knah Tsaeb Date: Fri, 10 Jun 2016 16:00:08 +0200 Subject: [PATCH] Fix bad page title --- index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 3c09e02..2827eac 100644 --- a/index.php +++ b/index.php @@ -2004,7 +2004,9 @@ function buildLinkList($PAGE,$LINKSDB) $PAGE->assign('next_page_url',$next_page_url); $PAGE->assign('page_current',$page); $PAGE->assign('page_max',$pagecount); - $PAGE->assign('pagetitle', $GLOBALS['pagetitle']); + if (!empty($GLOBALS['pagetitle']) && count($linkDisp) == 1) { + $PAGE->assign('pagetitle', $GLOBALS['pagetitle']); + } $PAGE->assign('result_count',count($linksToDisplay)); $PAGE->assign('search_type',$search_type); $PAGE->assign('search_crits',$search_crits);