From e0fc01060d6d2399d7928098b54a3d4050a7ea62 Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Mon, 29 Jul 2013 08:42:45 -0400 Subject: [PATCH] Extra check to avoid sending false to url helper. --- themes/blueprint/templates/search/home.phtml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/themes/blueprint/templates/search/home.phtml b/themes/blueprint/templates/search/home.phtml index a072aeba30d..eccf9134a26 100644 --- a/themes/blueprint/templates/search/home.phtml +++ b/themes/blueprint/templates/search/home.phtml @@ -64,7 +64,9 @@ <? else: ?> <? $i = 0; foreach ($sortedList as $url => $value): ?> <? if (++$i > 12): ?> - <li><a href="<?=$this->url($advSearch)?>"><strong><?=$this->transEsc("More options")?>...</strong></a></li> + <? if ($advSearch): ?> + <li><a href="<?=$this->url($advSearch)?>"><strong><?=$this->transEsc("More options")?>...</strong></a></li> + <? endif; ?> <? break; ?> <? else: ?> <li><a href="<?=$url?>"><?=$this->escapeHtml($value)?></a></li> -- GitLab