slight optimalisation

This commit is contained in:
Michal Čihař
2004-06-16 07:39:48 +00:00
parent 21fbc1d33d
commit 1eaa0a7596

View File

@@ -1874,7 +1874,7 @@ if (typeof(document.getElementById) != 'undefined'
if ($cfg['LightTabs']) { if ($cfg['LightTabs']) {
$out = ''; $out = '';
if (strlen($link) > 0) { if (!empty($link)) {
$out .= '<a class="tab" href="' . $link . $sep . $args . '"' . $attr . $class . '>' $out .= '<a class="tab" href="' . $link . $sep . $args . '"' . $attr . $class . '>'
. '' . $text . '</a>'; . '' . $text . '</a>';
} else { } else {
@@ -1885,7 +1885,7 @@ if (typeof(document.getElementById) != 'undefined'
$out = "\n" . ' ' $out = "\n" . ' '
. '<td class="nav' . $addclass . '" nowrap="nowrap">' . '<td class="nav' . $addclass . '" nowrap="nowrap">'
. "\n" . ' '; . "\n" . ' ';
if (strlen($link) > 0) { if (!empty($link)) {
$out .= '<a href="' . $link . $sep . $args . '"' . $attr . '>' $out .= '<a href="' . $link . $sep . $args . '"' . $attr . '>'
. $text . '</a>'; . $text . '</a>';
} else { } else {