[chg] bad if syntax

This commit is contained in:
Knah Tsaeb 2015-06-26 14:09:33 +02:00
parent 17c45348fe
commit 1f0cf0c35e

View file

@ -1878,7 +1878,7 @@ function buildLinkList($PAGE,$LINKSDB)
$keys=array(); foreach($linksToDisplay as $key=>$value) { $keys[]=$key; } // Stupid and ugly. Thanks php.
// If it's a permalink, we change on-the-fly the title of the page.
if(!empty($search_type && $search_type == 'permalink')) {
if(!empty($search_type) && $search_type == 'permalink') {
$GLOBALS['pagetitle'] = $linksToDisplay[$keys[0]]['title'] . ' - ' . $GLOBALS['title'];
}