@@ -1121,7 +1121,7 @@ discard block |
||
| 1121 | 1121 | // An array already? |
| 1122 | 1122 | elseif (is_array($modSettings['attachmentUploadDir'])) |
| 1123 | 1123 | { |
| 1124 | - foreach($modSettings['attachmentUploadDir'] AS $dir) |
|
| 1124 | + foreach($modSettings['attachmentUploadDir'] as $dir) |
|
| 1125 | 1125 | if (!empty($dir) && !is_dir($dir)) |
| 1126 | 1126 | $attdr_problem_found = true; |
| 1127 | 1127 | } |
@@ -1130,7 +1130,7 @@ discard block |
||
| 1130 | 1130 | { |
| 1131 | 1131 | if (is_array($ser_test)) |
| 1132 | 1132 | { |
| 1133 | - foreach($ser_test AS $dir) |
|
| 1133 | + foreach($ser_test as $dir) |
|
| 1134 | 1134 | { |
| 1135 | 1135 | if (!empty($dir) && !is_dir($dir)) |
| 1136 | 1136 | $attdr_problem_found = true; |
@@ -1147,7 +1147,7 @@ discard block |
||
| 1147 | 1147 | { |
| 1148 | 1148 | if (is_array($json_test)) |
| 1149 | 1149 | { |
| 1150 | - foreach($json_test AS $dir) |
|
| 1150 | + foreach($json_test as $dir) |
|
| 1151 | 1151 | { |
| 1152 | 1152 | if (!is_dir($dir)) |
| 1153 | 1153 | $attdr_problem_found = true; |
@@ -3309,7 +3309,7 @@ discard block |
||
| 3309 | 3309 | // Deleting an existing label? |
| 3310 | 3310 | elseif (isset($_POST['delete'], $_POST['delete_label'])) |
| 3311 | 3311 | { |
| 3312 | - foreach ($_POST['delete_label'] AS $label => $dummy) |
|
| 3312 | + foreach ($_POST['delete_label'] as $label => $dummy) |
|
| 3313 | 3313 | { |
| 3314 | 3314 | if (array_key_exists($label, $the_labels)) |
| 3315 | 3315 | { |
@@ -3353,7 +3353,7 @@ discard block |
||
| 3353 | 3353 | if (!empty($labels_to_add)) |
| 3354 | 3354 | { |
| 3355 | 3355 | $inserts = array(); |
| 3356 | - foreach ($labels_to_add AS $label) |
|
| 3356 | + foreach ($labels_to_add as $label) |
|
| 3357 | 3357 | $inserts[] = array($user_info['id'], $label); |
| 3358 | 3358 | |
| 3359 | 3359 | $smcFunc['db_insert']('', '{db_prefix}pm_labels', array('id_member' => 'int', 'name' => 'string-30'), $inserts, array()); |
@@ -3362,7 +3362,7 @@ discard block |
||
| 3362 | 3362 | // Update existing labels as needed |
| 3363 | 3363 | if (!empty($label_updates)) |
| 3364 | 3364 | { |
| 3365 | - foreach ($label_updates AS $id => $name) |
|
| 3365 | + foreach ($label_updates as $id => $name) |
|
| 3366 | 3366 | { |
| 3367 | 3367 | $smcFunc['db_query']('', ' |
| 3368 | 3368 | UPDATE {db_prefix}pm_labels |