Browse Source

! Actually assign the right label to something.

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer 10 years ago
parent
commit
becd5b1d40
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Sources/PersonalMessage.php

+ 2 - 2
Sources/PersonalMessage.php

@@ -2757,8 +2757,8 @@ function MessageActionsApply()
 			if (!empty($labels_to_apply))
 			{
 				$inserts = array();
-				foreach ($labels_to_apply as $pm => $label)
-					$inserts[] = array($pm, $label);
+				foreach ($labels_to_apply as $label)
+					$inserts[] = array($row['id_pm'], $label);
 				
 				$smcFunc['db_insert']('',
 					'{db_prefix}pm_labeled_messages',