浏览代码

! 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))
 			{
 				$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',