소스 검색

! Actually assign the right label to something.

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer 10 년 전
부모
커밋
becd5b1d40
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Sources/PersonalMessage.php

+ 2 - 2
Sources/PersonalMessage.php

@@ -2757,8 +2757,8 @@ function MessageActionsApply()
 			if (!empty($labels_to_apply))
 			if (!empty($labels_to_apply))
 			{
 			{
 				$inserts = array();
 				$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']('',
 				$smcFunc['db_insert']('',
 					'{db_prefix}pm_labeled_messages',
 					'{db_prefix}pm_labeled_messages',