@@ -1037,7 +1037,8 @@ |
||
1037 | 1037 | { |
1038 | 1038 | require_once($sourcedir . '/Subs-Attachments.php'); |
1039 | 1039 | $msgIDs = array(); |
1040 | - foreach ($messages as $key => $value) { |
|
1040 | + foreach ($messages as $key => $value) |
|
1041 | + { |
|
1041 | 1042 | $msgIDs[] = $value; |
1042 | 1043 | } |
1043 | 1044 |
@@ -65,7 +65,8 @@ |
||
65 | 65 | { |
66 | 66 | require_once($sourcedir . '/Subs-Attachments.php'); |
67 | 67 | $msgIDs = array(); |
68 | - foreach ($rows as $key => $value) { |
|
68 | + foreach ($rows as $key => $value) |
|
69 | + { |
|
69 | 70 | $msgIDs[] = $value['id_msg']; |
70 | 71 | } |
71 | 72 |
@@ -1359,11 +1359,11 @@ discard block |
||
1359 | 1359 | { |
1360 | 1360 | global $context, $modSettings, $smcFunc, $user_info, $cacheMsgID; |
1361 | 1361 | |
1362 | - if(!isset($cacheMsgID)) |
|
1362 | + if (!isset($cacheMsgID)) |
|
1363 | 1363 | $cacheMsgID = array(); |
1364 | 1364 | |
1365 | 1365 | // remove all $msgIDs which we already cached |
1366 | - $msgIDs = array_flip(array_diff_key(array_flip($msgIDs), $cacheMsgID)) ; |
|
1366 | + $msgIDs = array_flip(array_diff_key(array_flip($msgIDs), $cacheMsgID)); |
|
1367 | 1367 | |
1368 | 1368 | if (!empty($msgIDs)) |
1369 | 1369 | { |
@@ -1388,7 +1388,7 @@ discard block |
||
1388 | 1388 | |
1389 | 1389 | foreach ($rows as $value) |
1390 | 1390 | { |
1391 | - if(empty($cacheMsgID[$value['id_msg']])) |
|
1391 | + if (empty($cacheMsgID[$value['id_msg']])) |
|
1392 | 1392 | $cacheMsgID[$value['id_msg']] = array(); |
1393 | 1393 | $cacheMsgID[$value['id_msg']][$value['id_attach']] = $value; |
1394 | 1394 | } |