Permalink
Browse files

Removed unnecessary variable assignment, break out of loop when forum…

… found.
  • Loading branch information...
onfire4g05 committed May 12, 2012
1 parent 55e345f commit 3dcdcb5660632ef1f8470feb9352f8bde99fb249
Showing with 7 additions and 4 deletions.
  1. +7 −4 cgi-bin/forum/Code/BoardIndex.pl
@@ -111,14 +111,17 @@ sub Glimpse { # Taken from latest threads in Portal
</item>
EOT
} else {
- $mydesc='';
+ $board_name = '';
foreach (@boardbase) {
- ($bid,$bdisc[0],$bdisc[1],$bdisc[2],$bdisc[3],$bdisc[4],$bdisc[5],$bdisc[6]) = split("/",$_);
- if($bid eq $board) { $mydesc=$bdisc[2] }
+ ($bid,$t,$t,$board_name) = split("/",$_);
+ if($bid eq $board) {
+ last;
+ }
}
+
$lastthread .= <<"EOT";
<td class="win center" style="vertical-align: top;"><div style="padding: 11px; padding-top: 4px;"><img src="$images/$status.png" alt="" /></div></td>
- <td class="win2" style="width: 50%">$new<a href="$surl\lm-$id/$snew" title="$gtxt{'19'} $posted_sn">$title</a>$newend<div class="smalltext">$gtxt{'46'} $lastuser<div class="bidate">$date $boardindex[105] <a href="$surl\lb-$board" title="$mydesc">$mydesc</a></div></div></td>
+ <td class="win2" style="width: 50%">$new<a href="$surl\lm-$id/$snew" title="$gtxt{'19'} $posted_sn">$title</a>$newend<div class="smalltext">$gtxt{'46'} $lastuser<div class="bidate">$date $boardindex[105] <a href="$surl\lb-$board" title="$board_name">$board_name</a></div></div></td>
EOT
}
++$counter;

0 comments on commit 3dcdcb5

Please sign in to comment.