|
@@ -135,7 +135,7 @@ discard block |
|
|
block discarded – undo |
|
135
|
135
|
$smcFunc['db_free_result']($result_boards); |
|
136
|
136
|
|
|
137
|
137
|
// Run through the categories and boards (or only boards).... |
|
138
|
|
- for (reset($row_boards); key($row_boards)!==null; next($row_boards)) |
|
|
138
|
+ for (reset($row_boards); key($row_boards) !== null; next($row_boards)) |
|
139
|
139
|
{ |
|
140
|
140
|
$row_board = current($row_boards); |
|
141
|
141
|
|
|
@@ -303,7 +303,7 @@ discard block |
|
|
block discarded – undo |
|
303
|
303
|
$row_boards[$row_board['id_parent']]['id_msg'] = $row_board['id_msg']; |
|
304
|
304
|
$row_boards[$row_board['id_parent']]['subject'] = $row_board['subject']; |
|
305
|
305
|
$row_boards[$row_board['id_parent']]['poster_time'] = $row_board['poster_time']; |
|
306
|
|
- $row_boards[$row_board['id_parent']]['short_subject'] = (!empty($row_board['short_subject']) ? $row_board['short_subject'] : '') ; |
|
|
306
|
+ $row_boards[$row_board['id_parent']]['short_subject'] = (!empty($row_board['short_subject']) ? $row_board['short_subject'] : ''); |
|
307
|
307
|
$row_boards[$row_board['id_parent']]['poster_name'] = $row_board['poster_name']; |
|
308
|
308
|
$row_boards[$row_board['id_parent']]['real_name'] = $row_board['real_name']; |
|
309
|
309
|
$row_boards[$row_board['id_parent']]['id_member'] = $row_board['id_member']; |
|
@@ -368,7 +368,7 @@ discard block |
|
|
block discarded – undo |
|
368
|
368
|
|
|
369
|
369
|
// Set the last post in the root board |
|
370
|
370
|
if (!$isChild && !empty($row_board['poster_time']) |
|
371
|
|
- && ( empty($this_category[$row_board['id_board']]['last_post']['timestamp']) |
|
|
371
|
+ && (empty($this_category[$row_board['id_board']]['last_post']['timestamp']) |
|
372
|
372
|
|| $this_category[$row_board['id_board']]['last_post']['timestamp'] < forum_time(true, $row_board['poster_time']) |
|
373
|
373
|
) |
|
374
|
374
|
) |
|
@@ -398,7 +398,7 @@ discard block |
|
|
block discarded – undo |
|
398
|
398
|
if ($boardIndexOptions['include_categories']) |
|
399
|
399
|
foreach ($categories as &$category) |
|
400
|
400
|
{ |
|
401
|
|
- foreach ($category['boards'] as &$board ) |
|
|
401
|
+ foreach ($category['boards'] as &$board) |
|
402
|
402
|
{ |
|
403
|
403
|
if (!empty($moderators[$board['id']])) |
|
404
|
404
|
{ |
|
@@ -420,7 +420,7 @@ discard block |
|
|
block discarded – undo |
|
420
|
420
|
} |
|
421
|
421
|
} |
|
422
|
422
|
else |
|
423
|
|
- foreach ($this_category as &$board ) |
|
|
423
|
+ foreach ($this_category as &$board) |
|
424
|
424
|
{ |
|
425
|
425
|
if (!empty($moderators[$board['id']])) |
|
426
|
426
|
{ |
|
@@ -441,7 +441,7 @@ discard block |
|
|
block discarded – undo |
|
441
|
441
|
$board['last_post']['last_post_message'] = sprintf($txt['last_post_message'], $board['last_post']['member']['link'], $board['last_post']['link'], $board['last_post']['time'] > 0 ? timeformat($board['last_post']['time']) : $txt['not_applicable']); |
|
442
|
442
|
} |
|
443
|
443
|
|
|
444
|
|
- unset($category,$board); |
|
|
444
|
+ unset($category, $board); |
|
445
|
445
|
|
|
446
|
446
|
if ($boardIndexOptions['include_categories']) |
|
447
|
447
|
sortCategories($categories); |