mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Change for with count.
This commit is contained in:
parent
32ca1d66fc
commit
56540c893a
16 changed files with 73 additions and 73 deletions
|
@ -1790,7 +1790,7 @@ function get_forum_display_sort_option($selected_row = 0, $action = 'list', $lis
|
|||
|
||||
// build list
|
||||
if ($action == 'list') {
|
||||
for ($i = 0; $i < count($listrow['lang_key']); $i++) {
|
||||
for ($i = 0, $iMax = count($listrow['lang_key']); $i < $iMax; $i++) {
|
||||
$selected = ($i == $selected_row) ? ' selected="selected"' : '';
|
||||
$l_value = (isset($lang[$listrow['lang_key'][$i]])) ? $lang[$listrow['lang_key'][$i]] : $listrow['lang_key'][$i];
|
||||
$res .= '<option value="' . $i . '"' . $selected . '>' . $l_value . '</option>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue