[fix] small bug (bad empty test)
This commit is contained in:
parent
c26d0303ee
commit
12e74779c4
2 changed files with 2 additions and 2 deletions
|
@ -1815,7 +1815,7 @@ function buildLinkList($PAGE,$LINKSDB)
|
||||||
uasort($taglist, 'strcasecmp');
|
uasort($taglist, 'strcasecmp');
|
||||||
$link['taglist']=$taglist;
|
$link['taglist']=$taglist;
|
||||||
if(!empty($link['via'])){
|
if(!empty($link['via'])){
|
||||||
$link['via']=nl2br(htmlspecialchars($link['via']));
|
$link['via']=htmlspecialchars($link['via']);
|
||||||
}
|
}
|
||||||
$linkDisp[$keys[$i]] = $link;
|
$linkDisp[$keys[$i]] = $link;
|
||||||
$i++;
|
$i++;
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
<span class="linktitle"><a href="{$redirector}{$value.url|htmlspecialchars}">{$value.title|htmlspecialchars}</a></span>
|
<span class="linktitle"><a href="{$redirector}{$value.url|htmlspecialchars}">{$value.title|htmlspecialchars}</a></span>
|
||||||
<br>
|
<br>
|
||||||
{if="$value.description"}<div class="linkdescription"{if condition="$search_type=='permalink'"} style="max-height:none !important;"{/if}>{$value.description}</div>{/if}
|
{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()"}
|
{if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"}
|
||||||
<span class="linkdate" title="Permalink"><a href="?{$value.linkdate|smallHash}">{$value.localdate|htmlspecialchars} - permalink</a> - </span>
|
<span class="linkdate" title="Permalink"><a href="?{$value.linkdate|smallHash}">{$value.localdate|htmlspecialchars} - permalink</a> - </span>
|
||||||
{else}
|
{else}
|
||||||
|
|
Loading…
Reference in a new issue