From 1f0cf0c35e035202f7bc649d971ab8b4dc774fb5 Mon Sep 17 00:00:00 2001 From: Knah Tsaeb Date: Fri, 26 Jun 2015 14:09:33 +0200 Subject: [PATCH] [chg] bad if syntax --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index f215b52..cc807d0 100644 --- a/index.php +++ b/index.php @@ -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']; }