Passed
Pull Request — release-2.1 (#7240)
by
unknown
04:44
created
Sources/PersonalMessage.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3304,7 +3304,7 @@  discard block
 block discarded – undo
3304 3304
 		// Deleting an existing label?
3305 3305
 		elseif (isset($_POST['delete'], $_POST['delete_label']))
3306 3306
 		{
3307
-			foreach ($_POST['delete_label'] AS $label => $dummy)
3307
+			foreach ($_POST['delete_label'] as $label => $dummy)
3308 3308
 			{
3309 3309
 				unset($the_labels[$label]);
3310 3310
 				$labels_to_remove[] = $label;
@@ -3345,7 +3345,7 @@  discard block
 block discarded – undo
3345 3345
 		if (!empty($labels_to_add))
3346 3346
 		{
3347 3347
 			$inserts = array();
3348
-			foreach ($labels_to_add AS $label)
3348
+			foreach ($labels_to_add as $label)
3349 3349
 				$inserts[] = array($user_info['id'], $label);
3350 3350
 
3351 3351
 			$smcFunc['db_insert']('', '{db_prefix}pm_labels', array('id_member' => 'int', 'name' => 'string-30'), $inserts, array());
@@ -3354,7 +3354,7 @@  discard block
 block discarded – undo
3354 3354
 		// Update existing labels as needed
3355 3355
 		if (!empty($label_updates))
3356 3356
 		{
3357
-			foreach ($label_updates AS $id => $name)
3357
+			foreach ($label_updates as $id => $name)
3358 3358
 			{
3359 3359
 				$smcFunc['db_query']('', '
3360 3360
 					UPDATE {db_prefix}pm_labels
Please login to merge, or discard this patch.