[fix] small bug (bad empty test)

This commit is contained in:
Knah Tsaeb 2013-05-03 10:44:24 +02:00
parent c26d0303ee
commit 12e74779c4
2 changed files with 2 additions and 2 deletions

View file

@ -1815,7 +1815,7 @@ function buildLinkList($PAGE,$LINKSDB)
uasort($taglist, 'strcasecmp');
$link['taglist']=$taglist;
if(!empty($link['via'])){
$link['via']=nl2br(htmlspecialchars($link['via']));
$link['via']=htmlspecialchars($link['via']);
}
$linkDisp[$keys[$i]] = $link;
$i++;

View file

@ -43,7 +43,7 @@
<span class="linktitle"><a href="{$redirector}{$value.url|htmlspecialchars}">{$value.title|htmlspecialchars}</a></span>
<br>
{if="$value.description"}<div class="linkdescription"{if condition="$search_type=='permalink'"} style="max-height:none !important;"{/if}>{$value.description}</div>{/if}
{if="$value.via"}<div><a href="{$value.via}">@ via {$value.via|getJustDomain}</a></div>{/if}
{if condition="isset($value.via) && !empty($value.via)"}<div><a href="{$value.via}">@ via {$value.via|getJustDomain}</a></div>{/if}
{if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"}
<span class="linkdate" title="Permalink"><a href="?{$value.linkdate|smallHash}">{$value.localdate|htmlspecialchars} - permalink</a> - </span>
{else}