Skip to content

Commit

Permalink
Merge pull request #6266 from live627/note
Browse files Browse the repository at this point in the history
Add a note to prevent dimwits like me from turning this into a foreach
  • Loading branch information
Sesquipedalian committed Oct 4, 2020
2 parents 463a875 + 6739762 commit ade756d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/Subs-BoardIndex.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ function getBoardIndex($board_index_options)
$smcFunc['db_free_result']($result_boards);

// Run through the categories and boards (or only boards)....
// Done like this so the modified values can be used.
for (reset($row_boards); key($row_boards) !== null; next($row_boards))
{
$row_board = current($row_boards);
Expand Down

0 comments on commit ade756d

Please sign in to comment.