瀏覽代碼

Merge pull request #1360 from Oldiesmann/release-2.1

! LIMIT 1 makes no sense on a query that does COUNT()
Michael Eshom 10 年之前
父節點
當前提交
845416bef3
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      Sources/PersonalMessage.php

+ 1 - 2
Sources/PersonalMessage.php

@@ -2726,8 +2726,7 @@ function MessageActionsApply()
 					FROM {db_prefix}pm_labels AS l
 						INNER JOIN {db_prefix}pm_labeled_messages AS pml ON (pml.id_label = l.id_label)
 					WHERE l.id_member = {int:current_member}
-						AND pml.id_pm = {int:current_pm}
-					LIMIT 1',
+						AND pml.id_pm = {int:current_pm}',
 					array(
 						'current_member' => $user_info['id'],
 						'current_pm' => $row['id_pm'],