@@ -504,7 +504,7 @@ discard block |
||
| 504 | 504 | 'items_per_page' => $items_per_page, |
| 505 | 505 | ] |
| 506 | 506 | )->fetch_callback( |
| 507 | - function ($row) use ($txt) { |
|
| 507 | + function($row) use ($txt) { |
|
| 508 | 508 | // Private PM/email subjects and similar shouldn't be shown in the mailbox area. |
| 509 | 509 | if (!empty($row['private'])) |
| 510 | 510 | { |
@@ -739,7 +739,7 @@ discard block |
||
| 739 | 739 | LIMIT ' . $number, |
| 740 | 740 | [] |
| 741 | 741 | )->fetch_callback( |
| 742 | - function ($row) use (&$ids, &$emails) { |
|
| 742 | + function($row) use (&$ids, &$emails) { |
|
| 743 | 743 | // Just get the data and go. |
| 744 | 744 | $ids[] = $row['id_mail']; |
| 745 | 745 | $emails[] = [ |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | 'admin_group' => 1, |
| 108 | 108 | ) |
| 109 | 109 | )->fetch_callback( |
| 110 | - function ($row) use (&$admins, &$emails, &$user_log_details) { |
|
| 110 | + function($row) use (&$admins, &$emails, &$user_log_details) { |
|
| 111 | 111 | if ($row['is_admin']) |
| 112 | 112 | { |
| 113 | 113 | $admins[] = $row['id_member']; |
@@ -462,7 +462,7 @@ discard block |
||
| 462 | 462 | 'buddy_list' => implode(', buddy_list) != 0 OR FIND_IN_SET(', $users), |
| 463 | 463 | ) |
| 464 | 464 | )->fetch_callback( |
| 465 | - function ($row) use ($users) { |
|
| 465 | + function($row) use ($users) { |
|
| 466 | 466 | updateMemberData($row['id_member'], array( |
| 467 | 467 | 'pm_ignore_list' => implode(',', array_diff(explode(',', $row['pm_ignore_list']), $users)), |
| 468 | 468 | 'buddy_list' => implode(',', array_diff(explode(',', $row['buddy_list']), $users)) |
@@ -1057,7 +1057,7 @@ discard block |
||
| 1057 | 1057 | 'permission' => $permission, |
| 1058 | 1058 | ] |
| 1059 | 1059 | )->fetch_callback( |
| 1060 | - function ($row) use (&$member_groups) { |
|
| 1060 | + function($row) use (&$member_groups) { |
|
| 1061 | 1061 | $member_groups[$row['add_deny'] === '1' ? 'allowed' : 'denied'][] = (int) $row['id_group']; |
| 1062 | 1062 | } |
| 1063 | 1063 | ); |
@@ -1097,7 +1097,7 @@ discard block |
||
| 1097 | 1097 | 'permission' => $permission, |
| 1098 | 1098 | ) |
| 1099 | 1099 | )->fetch_callback( |
| 1100 | - function ($row) use (&$member_groups) { |
|
| 1100 | + function($row) use (&$member_groups) { |
|
| 1101 | 1101 | $member_groups[$row['add_deny'] === '1' ? 'allowed' : 'denied'][] = (int) $row['id_group']; |
| 1102 | 1102 | } |
| 1103 | 1103 | ); |
@@ -1149,7 +1149,7 @@ discard block |
||
| 1149 | 1149 | 'member_group_denied_implode' => implode(', mem.additional_groups) != 0 OR FIND_IN_SET(', $member_groups['denied']), |
| 1150 | 1150 | ) |
| 1151 | 1151 | )->fetch_callback( |
| 1152 | - function ($row) { |
|
| 1152 | + function($row) { |
|
| 1153 | 1153 | return $row['id_member']; |
| 1154 | 1154 | } |
| 1155 | 1155 | ); |
@@ -1415,7 +1415,7 @@ discard block |
||
| 1415 | 1415 | 'ips' => $ips, |
| 1416 | 1416 | ) |
| 1417 | 1417 | )->fetch_callback( |
| 1418 | - function ($row) use (&$had_ips, &$duplicate_members) { |
|
| 1418 | + function($row) use (&$had_ips, &$duplicate_members) { |
|
| 1419 | 1419 | // Don't collect lots of the same. |
| 1420 | 1420 | if (isset($had_ips[$row['poster_ip']]) && in_array($row['id_member'], $had_ips[$row['poster_ip']])) |
| 1421 | 1421 | { |
@@ -1596,7 +1596,7 @@ discard block |
||
| 1596 | 1596 | LIMIT {int:start}, {int:limit}' : ''), |
| 1597 | 1597 | $query_params |
| 1598 | 1598 | )->fetch_callback( |
| 1599 | - function ($row) use (&$members, $details) { |
|
| 1599 | + function($row) use (&$members, $details) { |
|
| 1600 | 1600 | // Return all the details for each member found |
| 1601 | 1601 | if ($details) |
| 1602 | 1602 | { |
@@ -1665,7 +1665,7 @@ discard block |
||
| 1665 | 1665 | { |
| 1666 | 1666 | $allowed_conditions = array( |
| 1667 | 1667 | 'member_ids' => 'id_member IN ({array_int:member_ids})', |
| 1668 | - 'member_names' => function (&$members) { |
|
| 1668 | + 'member_names' => function(&$members) { |
|
| 1669 | 1669 | $mem_query = array(); |
| 1670 | 1670 | |
| 1671 | 1671 | foreach ($members['member_names'] as $key => $param) |
@@ -1778,7 +1778,7 @@ discard block |
||
| 1778 | 1778 | 'specific_admin' => isset($id_admin) ? (int) $id_admin : 0, |
| 1779 | 1779 | ) |
| 1780 | 1780 | )->fetch_callback( |
| 1781 | - function ($row) use (&$admins) { |
|
| 1781 | + function($row) use (&$admins) { |
|
| 1782 | 1782 | $admins[$row['id_member']] = array($row['real_name'], $row['lngfile']); |
| 1783 | 1783 | } |
| 1784 | 1784 | ); |
@@ -1873,7 +1873,7 @@ discard block |
||
| 1873 | 1873 | 'sort' => $options['sort'] ?? '', |
| 1874 | 1874 | ) |
| 1875 | 1875 | )->fetch_callback( |
| 1876 | - function ($row) use (&$members, $language, $single, $options) { |
|
| 1876 | + function($row) use (&$members, $language, $single, $options) { |
|
| 1877 | 1877 | $row['id_member'] = (int) $row['id_member']; |
| 1878 | 1878 | $row['posts'] = (int) $row['posts']; |
| 1879 | 1879 | $row['id_theme'] = (int) $row['id_theme']; |
@@ -1929,7 +1929,7 @@ discard block |
||
| 1929 | 1929 | 'is_activated' => 1, |
| 1930 | 1930 | ) |
| 1931 | 1931 | )->fetch_callback( |
| 1932 | - function ($row) use (&$inactive_members) { |
|
| 1932 | + function($row) use (&$inactive_members) { |
|
| 1933 | 1933 | $inactive_members[(int) $row['is_activated']] = (int) $row['total_members']; |
| 1934 | 1934 | } |
| 1935 | 1935 | ); |
@@ -2011,7 +2011,7 @@ discard block |
||
| 2011 | 2011 | 'limit' => Util::strlen($search) <= 2 ? 100 : 200, |
| 2012 | 2012 | ) |
| 2013 | 2013 | )->fetch_callback( |
| 2014 | - function ($row) { |
|
| 2014 | + function($row) { |
|
| 2015 | 2015 | $row['real_name'] = strtr($row['real_name'], array('&' => '&', '<' => '<', '>' => '>', '"' => '"')); |
| 2016 | 2016 | |
| 2017 | 2017 | return array( |
@@ -2101,7 +2101,7 @@ discard block |
||
| 2101 | 2101 | ORDER BY {raw:order_by}' . $limit, |
| 2102 | 2102 | $conditions |
| 2103 | 2103 | )->fetch_callback( |
| 2104 | - function ($row) use (&$data) { |
|
| 2104 | + function($row) use (&$data) { |
|
| 2105 | 2105 | global $modSettings, $language; |
| 2106 | 2106 | |
| 2107 | 2107 | $data['members'][] = (int) $row['id_member']; |
@@ -2407,7 +2407,7 @@ discard block |
||
| 2407 | 2407 | 'request_list' => $groups, |
| 2408 | 2408 | ) |
| 2409 | 2409 | )->fetch_callback( |
| 2410 | - function ($row) use (&$email_details, &$group_changes, $change_groups) { |
|
| 2410 | + function($row) use (&$email_details, &$group_changes, $change_groups) { |
|
| 2411 | 2411 | global $modSettings, $language; |
| 2412 | 2412 | |
| 2413 | 2413 | $row['lngfile'] = empty($row['lngfile']) || empty($modSettings['userLanguage']) ? $language : $row['lngfile']; |
@@ -2751,7 +2751,7 @@ discard block |
||
| 2751 | 2751 | WHERE ' . $condition, |
| 2752 | 2752 | $parameters |
| 2753 | 2753 | )->fetch_callback( |
| 2754 | - function ($row) { |
|
| 2754 | + function($row) { |
|
| 2755 | 2755 | return $row['member_name']; |
| 2756 | 2756 | } |
| 2757 | 2757 | ); |
@@ -2865,7 +2865,7 @@ discard block |
||
| 2865 | 2865 | 'ip_address' => $ip_var, |
| 2866 | 2866 | ) |
| 2867 | 2867 | )->fetch_callback( |
| 2868 | - function ($row) use (&$ips) { |
|
| 2868 | + function($row) use (&$ips) { |
|
| 2869 | 2869 | $ips[$row['member_ip']][] = '<a href="' . getUrl('profile', ['action' => 'profile', 'u' => $row['id_member'], 'name' => $row['display_name']]) . '">' . $row['display_name'] . '</a>'; |
| 2870 | 2870 | } |
| 2871 | 2871 | ); |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | 'messages' => $msgs, |
| 98 | 98 | ) |
| 99 | 99 | )->fetch_callback( |
| 100 | - function ($row) use (&$actioned_messages, &$previous_topics) { |
|
| 100 | + function($row) use (&$actioned_messages, &$previous_topics) { |
|
| 101 | 101 | // Restoring the first post means topic. |
| 102 | 102 | if ((int) $row['id_msg'] === (int) $row['id_first_msg'] && (int) $row['id_previous_topic'] === (int) $row['id_topic']) |
| 103 | 103 | { |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | 'previous_topics' => $previous_topics, |
| 159 | 159 | ) |
| 160 | 160 | )->fetch_callback( |
| 161 | - static function ($row) use (&$previous_topics) { |
|
| 161 | + static function($row) use (&$previous_topics) { |
|
| 162 | 162 | $previous_topics[$row['id_topic']] = array( |
| 163 | 163 | 'board' => $row['id_board'], |
| 164 | 164 | 'subject' => $row['subject'], |
@@ -278,7 +278,7 @@ discard block |
||
| 278 | 278 | 'is_approved' => 1, |
| 279 | 279 | ) |
| 280 | 280 | )->fetch_callback( |
| 281 | - static function ($row) { |
|
| 281 | + static function($row) { |
|
| 282 | 282 | updateMemberData($row['id_member'], array('posts' => '+')); |
| 283 | 283 | } |
| 284 | 284 | ); |
@@ -318,7 +318,7 @@ discard block |
||
| 318 | 318 | 'target_topic' => $target_topic, |
| 319 | 319 | ) |
| 320 | 320 | )->fetch_callback( |
| 321 | - static function ($row) use (&$target_topic_data) { |
|
| 321 | + static function($row) use (&$target_topic_data) { |
|
| 322 | 322 | if ($row['id_first_msg'] < $target_topic_data['id_first_msg']) |
| 323 | 323 | { |
| 324 | 324 | $target_topic_data['id_first_msg'] = $row['id_first_msg']; |
@@ -387,7 +387,7 @@ discard block |
||
| 387 | 387 | 'from_topic' => $from_topic, |
| 388 | 388 | ) |
| 389 | 389 | )->fetch_callback( |
| 390 | - static function ($row) use (&$source_topic_data) { |
|
| 390 | + static function($row) use (&$source_topic_data) { |
|
| 391 | 391 | if ($row['id_first_msg'] < $source_topic_data['id_first_msg']) |
| 392 | 392 | { |
| 393 | 393 | $source_topic_data['id_first_msg'] = $row['id_first_msg']; |
@@ -461,7 +461,7 @@ discard block |
||
| 461 | 461 | 'first_messages' => $cache_updates, |
| 462 | 462 | ) |
| 463 | 463 | )->fetch_callback( |
| 464 | - static function ($row) { |
|
| 464 | + static function($row) { |
|
| 465 | 465 | updateSubjectStats($row['id_topic'], $row['subject']); |
| 466 | 466 | } |
| 467 | 467 | ); |
@@ -555,7 +555,7 @@ discard block |
||
| 555 | 555 | 'is_approved' => 1, |
| 556 | 556 | ) |
| 557 | 557 | )->fetch_callback( |
| 558 | - static function ($member) { |
|
| 558 | + static function($member) { |
|
| 559 | 559 | updateMemberData($member['id_member'], array('posts' => 'posts + ' . $member['post_count'])); |
| 560 | 560 | } |
| 561 | 561 | ); |
@@ -977,7 +977,7 @@ discard block |
||
| 977 | 977 | updateMessageStats(); |
| 978 | 978 | require_once(SUBSDIR . '/Topic.subs.php'); |
| 979 | 979 | updateTopicStats(); |
| 980 | - updateSettings(['calendar_updated' => time(),]); |
|
| 980 | + updateSettings(['calendar_updated' => time(), ]); |
|
| 981 | 981 | |
| 982 | 982 | // And now to update the last message of each board we messed with. |
| 983 | 983 | require_once(SUBSDIR . '/Post.subs.php'); |
@@ -1041,7 +1041,7 @@ discard block |
||
| 1041 | 1041 | 'mention_types' => $mentionTypes, |
| 1042 | 1042 | ] |
| 1043 | 1043 | )->fetch_callback( |
| 1044 | - function ($row) use (&$changeMe) { |
|
| 1044 | + function($row) use (&$changeMe) { |
|
| 1045 | 1045 | $changeMe[] = (int) $row['id_member']; |
| 1046 | 1046 | } |
| 1047 | 1047 | ); |
@@ -640,7 +640,7 @@ |
||
| 640 | 640 | $this->sendSiteBoardNotifications($topicData, $board_index, $boards); |
| 641 | 641 | |
| 642 | 642 | // Now the ones who want it via Email |
| 643 | - $this->sendEmailBoardNotifications($topicData,$board_index, $boards); |
|
| 643 | + $this->sendEmailBoardNotifications($topicData, $board_index, $boards); |
|
| 644 | 644 | |
| 645 | 645 | $lang_loader = new Loader(null, $txt, database()); |
| 646 | 646 | $lang_loader->load('index', false); |