@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | 'text_none' => $txt['none'], |
| 42 | 42 | ) |
| 43 | 43 | )->fetch_callback( |
| 44 | - function ($row) use (&$boards) { |
|
| 44 | + function($row) use (&$boards) { |
|
| 45 | 45 | $boards[] = $row; |
| 46 | 46 | } |
| 47 | 47 | ); |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | 'moderator_group' => 3, |
| 84 | 84 | ) |
| 85 | 85 | )->fetch_callback( |
| 86 | - function ($row) use (&$member_groups) { |
|
| 86 | + function($row) use (&$member_groups) { |
|
| 87 | 87 | $member_groups[$row['id_group']] = $row['group_name']; |
| 88 | 88 | } |
| 89 | 89 | ); |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | 'moderate_board' => 'moderate_board', |
| 167 | 167 | ) |
| 168 | 168 | )->fetch_callback( |
| 169 | - function ($row) use (&$rows) { |
|
| 169 | + function($row) use (&$rows) { |
|
| 170 | 170 | $rows[] = $row; |
| 171 | 171 | } |
| 172 | 172 | ); |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | 'sort' => $sort, |
| 115 | 115 | ) |
| 116 | 116 | )->fetch_callback( |
| 117 | - function ($row) { |
|
| 117 | + function($row) { |
|
| 118 | 118 | $row['avatar'] = determineAvatar($row); |
| 119 | 119 | |
| 120 | 120 | return $row; |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | 'messages' => $msgs, |
| 190 | 190 | ) |
| 191 | 191 | )->fetch_callback( |
| 192 | - function ($row) use ($status) { |
|
| 192 | + function($row) use ($status) { |
|
| 193 | 193 | updateMentionMenuCount($status, $row['id_member']); |
| 194 | 194 | } |
| 195 | 195 | ); |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | 'is_approved' => 1, |
| 61 | 61 | ) |
| 62 | 62 | )->fetch_callback( |
| 63 | - function ($row) use (&$posts, $bbc_parser) { |
|
| 63 | + function($row) use (&$posts, $bbc_parser) { |
|
| 64 | 64 | global $modSettings; |
| 65 | 65 | |
| 66 | 66 | // Censor the subject and post for the preview ;). |
@@ -370,7 +370,7 @@ discard block |
||
| 370 | 370 | 'current_member' => $latestTopicOptions['id_member'], |
| 371 | 371 | ) |
| 372 | 372 | )->fetch_callback( |
| 373 | - function ($row) use (&$posts, $bbc_parser) { |
|
| 373 | + function($row) use (&$posts, $bbc_parser) { |
|
| 374 | 374 | global $modSettings, $txt; |
| 375 | 375 | |
| 376 | 376 | // Censor the subject and post for the preview ;). |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | 'moderate_forum' => 'moderate_forum', |
| 109 | 109 | ] |
| 110 | 110 | )->fetch_callback( |
| 111 | - function ($row) use (&$groups) { |
|
| 111 | + function($row) use (&$groups) { |
|
| 112 | 112 | $groups[] = $row['id_group']; |
| 113 | 113 | } |
| 114 | 114 | ); |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | 'group_array_implode' => implode(', additional_groups) != 0 OR FIND_IN_SET(', $groups), |
| 133 | 133 | ] |
| 134 | 134 | )->fetch_callback( |
| 135 | - function ($row) use ($type, $member_name, $memberID, $language) { |
|
| 135 | + function($row) use ($type, $member_name, $memberID, $language) { |
|
| 136 | 136 | global $scripturl, $modSettings; |
| 137 | 137 | |
| 138 | 138 | $replacements = [ |
@@ -284,7 +284,7 @@ discard block |
||
| 284 | 284 | 'mention_types' => $notification_types, |
| 285 | 285 | ] |
| 286 | 286 | )->fetch_callback( |
| 287 | - function ($row) use (&$results) { |
|
| 287 | + function($row) use (&$results) { |
|
| 288 | 288 | if (!isset($results[$row['id_member']])) |
| 289 | 289 | { |
| 290 | 290 | $results[$row['id_member']] = []; |
@@ -502,7 +502,7 @@ discard block |
||
| 502 | 502 | return false; |
| 503 | 503 | } |
| 504 | 504 | |
| 505 | - $blowfish_salt = '$2a$07$' . $memSalt . $modSettings['unsubscribe_site_salt']. '$'; |
|
| 505 | + $blowfish_salt = '$2a$07$' . $memSalt . $modSettings['unsubscribe_site_salt'] . '$'; |
|
| 506 | 506 | $expected = substr($blowfish_salt, 0, 28) . $hash; |
| 507 | 507 | $check = crypt($area . $memEmail . $memSalt, $blowfish_salt); |
| 508 | 508 | |
@@ -540,7 +540,7 @@ discard block |
||
| 540 | 540 | 'attachment_type' => 0, |
| 541 | 541 | ] |
| 542 | 542 | )->fetch_callback( |
| 543 | - function ($row) use (&$topicData, &$boards_index, $type) { |
|
| 543 | + function($row) use (&$topicData, &$boards_index, $type) { |
|
| 544 | 544 | // all the boards for these topics, used to find all the members to be notified |
| 545 | 545 | $boards_index[] = $row['id_board']; |
| 546 | 546 | |
@@ -632,7 +632,7 @@ discard block |
||
| 632 | 632 | 'members_only' => is_array($members_only) ? $members_only : [$members_only], |
| 633 | 633 | ] |
| 634 | 634 | )->fetch_callback( |
| 635 | - function ($row) use (&$boardNotifyData) { |
|
| 635 | + function($row) use (&$boardNotifyData) { |
|
| 636 | 636 | // The board subscription information for the member |
| 637 | 637 | $clean = [ |
| 638 | 638 | 'id_member' => (int) $row['id_member'], |
@@ -715,7 +715,7 @@ discard block |
||
| 715 | 715 | 'members_only' => is_array($members_only) ? $members_only : [$members_only], |
| 716 | 716 | ] |
| 717 | 717 | )->fetch_callback( |
| 718 | - function ($row) use (&$topicNotifyData) { |
|
| 718 | + function($row) use (&$topicNotifyData) { |
|
| 719 | 719 | // The topic subscription information for the member |
| 720 | 720 | $clean = [ |
| 721 | 721 | 'id_member' => (int) $row['id_member'], |
@@ -819,7 +819,7 @@ discard block |
||
| 819 | 819 | 'notify_regularity' => 2, |
| 820 | 820 | ] |
| 821 | 821 | )->fetch_callback( |
| 822 | - function ($row) use (&$approvalNotifyData) { |
|
| 822 | + function($row) use (&$approvalNotifyData) { |
|
| 823 | 823 | $clean = [ |
| 824 | 824 | 'id_member' => (int) $row['id_member'], |
| 825 | 825 | 'email_address' => $row['email_address'], |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | 'approved' => 1, |
| 40 | 40 | ) |
| 41 | 41 | )->fetch_callback( |
| 42 | - function ($row) use (&$returns) { |
|
| 42 | + function($row) use (&$returns) { |
|
| 43 | 43 | $returns[$row['derived_from']][] = $row; |
| 44 | 44 | } |
| 45 | 45 | ); |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | 'approved' => 1, |
| 74 | 74 | ) |
| 75 | 75 | )->fetch_callback( |
| 76 | - function ($row) use (&$returns) { |
|
| 76 | + function($row) use (&$returns) { |
|
| 77 | 77 | $returns = $row; |
| 78 | 78 | } |
| 79 | 79 | ); |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | ORDER BY cat_order', |
| 56 | 56 | array() |
| 57 | 57 | )->fetch_callback( |
| 58 | - function ($row) use (&$cat_order, &$cats, $category_id, $catOptions) { |
|
| 58 | + function($row) use (&$cat_order, &$cats, $category_id, $catOptions) { |
|
| 59 | 59 | if ($row['id_cat'] != $category_id) |
| 60 | 60 | { |
| 61 | 61 | $cats[] = $row['id_cat']; |
@@ -338,7 +338,7 @@ discard block |
||
| 338 | 338 | 'member_list' => $members, |
| 339 | 339 | ) |
| 340 | 340 | )->fetch_callback( |
| 341 | - function ($row) use (&$updates, $check_collapsable) { |
|
| 341 | + function($row) use (&$updates, $check_collapsable) { |
|
| 342 | 342 | if (empty($row['is_collapsed']) && (!empty($row['can_collapse']) || !$check_collapsable)) |
| 343 | 343 | { |
| 344 | 344 | $updates['insert'][] = array($row['id_member'], $row['id_cat']); |
@@ -1000,7 +1000,7 @@ discard block |
||
| 1000 | 1000 | 'blank_string' => '', |
| 1001 | 1001 | ) |
| 1002 | 1002 | )->fetch_callback( |
| 1003 | - function ($row) use (&$memberIDs, &$memberEmails, &$memberEmailWild) { |
|
| 1003 | + function($row) use (&$memberIDs, &$memberEmails, &$memberEmailWild) { |
|
| 1004 | 1004 | if ($row['id_member']) |
| 1005 | 1005 | { |
| 1006 | 1006 | $memberIDs[$row['id_member']] = $row['id_member']; |
@@ -1052,7 +1052,7 @@ discard block |
||
| 1052 | 1052 | WHERE ' . implode(' OR ', $queryPart), |
| 1053 | 1053 | $queryValues |
| 1054 | 1054 | )->fetch_callback( |
| 1055 | - function ($row) use (&$allMembers, &$updates, &$newMembers) { |
|
| 1055 | + function($row) use (&$allMembers, &$updates, &$newMembers) { |
|
| 1056 | 1056 | if (!in_array($row['id_member'], $allMembers)) |
| 1057 | 1057 | { |
| 1058 | 1058 | $allMembers[] = $row['id_member']; |
@@ -1088,7 +1088,7 @@ discard block |
||
| 1088 | 1088 | 'ban_flag' => 10, |
| 1089 | 1089 | ) |
| 1090 | 1090 | )->fetch_callback( |
| 1091 | - function ($row) use (&$allMembers, &$updates) { |
|
| 1091 | + function($row) use (&$allMembers, &$updates) { |
|
| 1092 | 1092 | // Don't do this twice! |
| 1093 | 1093 | if (!in_array($row['id_member'], $allMembers)) |
| 1094 | 1094 | { |
@@ -1607,7 +1607,7 @@ discard block |
||
| 1607 | 1607 | 'empty' => '', |
| 1608 | 1608 | ] |
| 1609 | 1609 | ); |
| 1610 | - $error_ips = $request->fetch_callback(function ($row) { |
|
| 1610 | + $error_ips = $request->fetch_callback(function($row) { |
|
| 1611 | 1611 | return $row['ip']; |
| 1612 | 1612 | }); |
| 1613 | 1613 | $request->free_result(); |
@@ -1678,7 +1678,7 @@ discard block |
||
| 1678 | 1678 | 'ban_group' => $ban_group, |
| 1679 | 1679 | ) |
| 1680 | 1680 | )->fetch_callback( |
| 1681 | - function ($row) use (&$details) { |
|
| 1681 | + function($row) use (&$details) { |
|
| 1682 | 1682 | $details[$row['id_ban']] = $row; |
| 1683 | 1683 | } |
| 1684 | 1684 | ); |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | 'rep_type' => array('pm', 'msg'), |
| 58 | 58 | ) |
| 59 | 59 | )->fetch_callback( |
| 60 | - function ($row) use (&$open_reports) { |
|
| 60 | + function($row) use (&$open_reports) { |
|
| 61 | 61 | $open_reports[$row['type']] = $row['num_reports']; |
| 62 | 62 | } |
| 63 | 63 | ); |
@@ -477,7 +477,7 @@ discard block |
||
| 477 | 477 | 'current_member' => User::$info->id, |
| 478 | 478 | ) |
| 479 | 479 | )->fetch_callback( |
| 480 | - function ($row) { |
|
| 480 | + function($row) { |
|
| 481 | 481 | logAction('delete_warn_template', array('template' => $row['recipient_name'])); |
| 482 | 482 | } |
| 483 | 483 | ); |
@@ -530,7 +530,7 @@ discard block |
||
| 530 | 530 | 'current_member' => User::$info->id, |
| 531 | 531 | ) |
| 532 | 532 | )->fetch_callback( |
| 533 | - function ($row) use (&$templates) { |
|
| 533 | + function($row) use (&$templates) { |
|
| 534 | 534 | global $scripturl; |
| 535 | 535 | |
| 536 | 536 | $templates[] = array( |
@@ -614,7 +614,7 @@ discard block |
||
| 614 | 614 | 'warning' => 'warning', |
| 615 | 615 | )) |
| 616 | 616 | )->fetch_callback( |
| 617 | - function ($row) use (&$warnings) { |
|
| 617 | + function($row) use (&$warnings) { |
|
| 618 | 618 | global $scripturl; |
| 619 | 619 | |
| 620 | 620 | $warnings[] = array( |
@@ -689,7 +689,7 @@ discard block |
||
| 689 | 689 | 'current_member' => User::$info->id, |
| 690 | 690 | ) |
| 691 | 691 | )->fetch_callback( |
| 692 | - function ($row) { |
|
| 692 | + function($row) { |
|
| 693 | 693 | global $context; |
| 694 | 694 | |
| 695 | 695 | $context['template_data'] = array( |
@@ -834,7 +834,7 @@ discard block |
||
| 834 | 834 | 'rep_type' => $show_pms ? array('pm') : array('msg'), |
| 835 | 835 | ) |
| 836 | 836 | )->fetch_callback( |
| 837 | - function ($row) use (&$reports) { |
|
| 837 | + function($row) use (&$reports) { |
|
| 838 | 838 | $reports[$row['id_report']] = $row; |
| 839 | 839 | } |
| 840 | 840 | ); |
@@ -866,7 +866,7 @@ discard block |
||
| 866 | 866 | 'report_list' => $id_reports, |
| 867 | 867 | ) |
| 868 | 868 | )->fetch_callback( |
| 869 | - function ($row) use (&$comments) { |
|
| 869 | + function($row) use (&$comments) { |
|
| 870 | 870 | $comments[$row['id_report']][] = $row; |
| 871 | 871 | } |
| 872 | 872 | ); |
@@ -899,7 +899,7 @@ discard block |
||
| 899 | 899 | 'reportc' => 'reportc', |
| 900 | 900 | ) |
| 901 | 901 | )->fetch_callback( |
| 902 | - function ($row) use (&$comments) { |
|
| 902 | + function($row) use (&$comments) { |
|
| 903 | 903 | $comments[] = $row; |
| 904 | 904 | } |
| 905 | 905 | ); |
@@ -926,7 +926,7 @@ discard block |
||
| 926 | 926 | 'not_approved' => 0, |
| 927 | 927 | ) |
| 928 | 928 | )->fetch_callback( |
| 929 | - function ($row) use (&$msgs) { |
|
| 929 | + function($row) use (&$msgs) { |
|
| 930 | 930 | $msgs[] = $row['id_msg']; |
| 931 | 931 | } |
| 932 | 932 | ); |
@@ -949,7 +949,7 @@ discard block |
||
| 949 | 949 | 'not_approved' => 0, |
| 950 | 950 | ) |
| 951 | 951 | )->fetch_callback( |
| 952 | - function ($row) use (&$attaches) { |
|
| 952 | + function($row) use (&$attaches) { |
|
| 953 | 953 | $attaches[] = $row['id_attach']; |
| 954 | 954 | } |
| 955 | 955 | ); |
@@ -1020,7 +1020,7 @@ discard block |
||
| 1020 | 1020 | 'sort' => $sort, |
| 1021 | 1021 | ) |
| 1022 | 1022 | )->fetch_callback( |
| 1023 | - function ($row) use (&$watched_users, &$members) { |
|
| 1023 | + function($row) use (&$watched_users, &$members) { |
|
| 1024 | 1024 | global $txt; |
| 1025 | 1025 | |
| 1026 | 1026 | $watched_users[$row['id_member']] = array( |
@@ -1054,7 +1054,7 @@ discard block |
||
| 1054 | 1054 | 'is_approved' => 1, |
| 1055 | 1055 | ) |
| 1056 | 1056 | )->fetch_callback( |
| 1057 | - function ($row) use (&$latest_posts) { |
|
| 1057 | + function($row) use (&$latest_posts) { |
|
| 1058 | 1058 | $latest_posts[$row['id_member']] = $row['last_post_id']; |
| 1059 | 1059 | } |
| 1060 | 1060 | ); |
@@ -1071,7 +1071,7 @@ discard block |
||
| 1071 | 1071 | 'message_list' => $latest_posts, |
| 1072 | 1072 | ) |
| 1073 | 1073 | )->fetch_callback( |
| 1074 | - function ($row) use (&$watched_users, $latest_posts) { |
|
| 1074 | + function($row) use (&$watched_users, $latest_posts) { |
|
| 1075 | 1075 | $watched_users[$row['id_member']]['last_post'] = standardTime($row['poster_time']); |
| 1076 | 1076 | $watched_users[$row['id_member']]['last_post_id'] = $latest_posts[$row['id_member']]; |
| 1077 | 1077 | } |
@@ -1091,7 +1091,7 @@ discard block |
||
| 1091 | 1091 | 'is_approved' => 1, |
| 1092 | 1092 | ) |
| 1093 | 1093 | )->fetch_callback( |
| 1094 | - function ($row) use (&$watched_users) { |
|
| 1094 | + function($row) use (&$watched_users) { |
|
| 1095 | 1095 | $watched_users[$row['id_member']]['last_post'] = standardTime($row['last_post']); |
| 1096 | 1096 | $watched_users[$row['id_member']]['last_post_id'] = $row['last_post_id']; |
| 1097 | 1097 | } |
@@ -1175,7 +1175,7 @@ discard block |
||
| 1175 | 1175 | 'recycle' => $modSettings['recycle_board'], |
| 1176 | 1176 | ) |
| 1177 | 1177 | )->fetch_callback( |
| 1178 | - function ($row) use (&$member_posts, $bbc_parser, $start, $delete_boards) { |
|
| 1178 | + function($row) use (&$member_posts, $bbc_parser, $start, $delete_boards) { |
|
| 1179 | 1179 | global $scripturl; |
| 1180 | 1180 | |
| 1181 | 1181 | $row['subject'] = censor($row['subject']); |
@@ -1227,7 +1227,7 @@ discard block |
||
| 1227 | 1227 | LIMIT 10', |
| 1228 | 1228 | array() |
| 1229 | 1229 | )->fetch_callback( |
| 1230 | - function ($row) use (&$group_requests, &$i) { |
|
| 1230 | + function($row) use (&$group_requests, &$i) { |
|
| 1231 | 1231 | global $scripturl; |
| 1232 | 1232 | |
| 1233 | 1233 | $group_requests[] = array( |
@@ -1277,7 +1277,7 @@ discard block |
||
| 1277 | 1277 | 'warning_watch' => $modSettings['warning_watch'], |
| 1278 | 1278 | ) |
| 1279 | 1279 | )->fetch_callback( |
| 1280 | - function ($row) use (&$watched_users) { |
|
| 1280 | + function($row) use (&$watched_users) { |
|
| 1281 | 1281 | $watched_users[] = $row; |
| 1282 | 1282 | } |
| 1283 | 1283 | ); |
@@ -1326,7 +1326,7 @@ discard block |
||
| 1326 | 1326 | 'rep_type' => $show_pms ? array('pm') : array('msg'), |
| 1327 | 1327 | ) |
| 1328 | 1328 | )->fetch_callback( |
| 1329 | - function ($row) use (&$reported_posts) { |
|
| 1329 | + function($row) use (&$reported_posts) { |
|
| 1330 | 1330 | $reported_posts[] = $row; |
| 1331 | 1331 | } |
| 1332 | 1332 | ); |
@@ -1470,7 +1470,7 @@ discard block |
||
| 1470 | 1470 | 'offset' => $offset, |
| 1471 | 1471 | ) |
| 1472 | 1472 | )->fetch_callback( |
| 1473 | - function ($row) use (&$moderator_notes) { |
|
| 1473 | + function($row) use (&$moderator_notes) { |
|
| 1474 | 1474 | $moderator_notes[] = $row; |
| 1475 | 1475 | } |
| 1476 | 1476 | ); |
@@ -1598,7 +1598,7 @@ discard block |
||
| 1598 | 1598 | 'not_approved' => 0, |
| 1599 | 1599 | ) |
| 1600 | 1600 | )->fetch_callback( |
| 1601 | - function ($row) use (&$unapproved_items, $bbc_parser, &$i, $boards_allowed) { |
|
| 1601 | + function($row) use (&$unapproved_items, $bbc_parser, &$i, $boards_allowed) { |
|
| 1602 | 1602 | global $context, $scripturl, $modSettings; |
| 1603 | 1603 | |
| 1604 | 1604 | // Can delete is complicated, let's solve it first... is it their own post? |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | 'tasks' => $tasks, |
| 224 | 224 | ) |
| 225 | 225 | )->fetch_callback( |
| 226 | - function ($row) use (&$task) { |
|
| 226 | + function($row) use (&$task) { |
|
| 227 | 227 | $task[$row['id_task']] = $row['task']; |
| 228 | 228 | } |
| 229 | 229 | ); |
@@ -386,7 +386,7 @@ discard block |
||
| 386 | 386 | 'id_task' => $id_task, |
| 387 | 387 | ) |
| 388 | 388 | )->fetch_callback( |
| 389 | - function ($row) use (&$task) { |
|
| 389 | + function($row) use (&$task) { |
|
| 390 | 390 | global $txt; |
| 391 | 391 | |
| 392 | 392 | $task = array( |
@@ -432,7 +432,7 @@ discard block |
||
| 432 | 432 | FROM {db_prefix}scheduled_tasks', |
| 433 | 433 | array() |
| 434 | 434 | )->fetch_callback( |
| 435 | - function ($row) use (&$known_tasks) { |
|
| 435 | + function($row) use (&$known_tasks) { |
|
| 436 | 436 | global $txt; |
| 437 | 437 | |
| 438 | 438 | // Find the next for regularity - don't offset as it's always server time! |
@@ -481,7 +481,7 @@ discard block |
||
| 481 | 481 | LIMIT ' . $items_per_page . ' OFFSET ' . $start, |
| 482 | 482 | array() |
| 483 | 483 | )->fetch_callback( |
| 484 | - function ($row) use (&$log_entries) { |
|
| 484 | + function($row) use (&$log_entries) { |
|
| 485 | 485 | global $txt; |
| 486 | 486 | |
| 487 | 487 | $log_entries[] = array( |