@@ -975,7 +975,7 @@ |
||
975 | 975 | else |
976 | 976 | { |
977 | 977 | $return = array(); |
978 | - while($row = mysqli_fetch_assoc($request)) |
|
978 | + while ($row = mysqli_fetch_assoc($request)) |
|
979 | 979 | $return[] = $row; |
980 | 980 | } |
981 | 981 | return !empty($return) ? $return : array(); |
@@ -501,7 +501,7 @@ discard block |
||
501 | 501 | ); |
502 | 502 | |
503 | 503 | $insert = array(); |
504 | - foreach ( $changed_boards[$board_action] as $board_id) |
|
504 | + foreach ($changed_boards[$board_action] as $board_id) |
|
505 | 505 | $insert[] = array($id_group, $board_id, $board_action == 'allow' ? 0 : 1); |
506 | 506 | |
507 | 507 | $smcFunc['db_insert']('insert', |
@@ -851,7 +851,7 @@ discard block |
||
851 | 851 | ); |
852 | 852 | |
853 | 853 | $insert = array(); |
854 | - foreach ( $changed_boards[$board_action] as $board_id) |
|
854 | + foreach ($changed_boards[$board_action] as $board_id) |
|
855 | 855 | $insert[] = array((int) $_REQUEST['group'], $board_id, $board_action == 'allow' ? 0 : 1); |
856 | 856 | |
857 | 857 | $smcFunc['db_insert']('insert', |
@@ -388,7 +388,7 @@ discard block |
||
388 | 388 | <script> |
389 | 389 | function swapPostGroup(isChecked) |
390 | 390 | { |
391 | - var is_moderator_group = ', (int)$context['is_moderator_group'], '; |
|
391 | + var is_moderator_group = ', (int) $context['is_moderator_group'], '; |
|
392 | 392 | var group_type = ', $context['group']['type'], '; |
393 | 393 | var min_posts_text = document.getElementById(\'min_posts_text\'); |
394 | 394 | var group_desc_text = document.getElementById(\'group_desc_text\'); |
@@ -453,7 +453,7 @@ discard block |
||
453 | 453 | if (empty($modSettings['deny_boards_access'])) |
454 | 454 | echo ' |
455 | 455 | <li class="category"> |
456 | - <a href="javascript:void(0);" onclick="selectBoards([', implode(', ', $category['child_ids']), '], \''.$form_id.'\'); return false;"><strong>', $category['name'], '</strong></a> |
|
456 | + <a href="javascript:void(0);" onclick="selectBoards([', implode(', ', $category['child_ids']), '], \'' . $form_id . '\'); return false;"><strong>', $category['name'], '</strong></a> |
|
457 | 457 | <ul>'; |
458 | 458 | else |
459 | 459 | echo ' |
@@ -1728,7 +1728,7 @@ |
||
1728 | 1728 | { |
1729 | 1729 | // Avoid double separators and empty titled sections |
1730 | 1730 | $empty_section = true; |
1731 | - for ($j=$i+1; $j <= count($context['theme_options']); $j++) |
|
1731 | + for ($j = $i + 1; $j <= count($context['theme_options']); $j++) |
|
1732 | 1732 | { |
1733 | 1733 | // Found another separator, so we're done |
1734 | 1734 | if (!is_array($context['theme_options'][$j])) |
@@ -143,7 +143,7 @@ |
||
143 | 143 | |
144 | 144 | // Redirect to the selector if they chose selective. |
145 | 145 | if ($_POST['step2'] == 'selective') |
146 | - redirectexit ('action=splittopics;sa=selectTopics;subname=' . $_POST['subname'] . ';topic=' . $topic . '.0;start2=0'); |
|
146 | + redirectexit('action=splittopics;sa=selectTopics;subname=' . $_POST['subname'] . ';topic=' . $topic . '.0;start2=0'); |
|
147 | 147 | |
148 | 148 | $_POST['at'] = (int) $_POST['at']; |
149 | 149 | $messagesToBeSplit = array(); |