Fix bad page title

This commit is contained in:
Knah Tsaeb 2016-06-10 16:00:08 +02:00
parent 35cc3582f0
commit a076447c7c
1 changed files with 3 additions and 1 deletions

View File

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