Browse Source

Merge pull request #1360 from Oldiesmann/release-2.1

! LIMIT 1 makes no sense on a query that does COUNT()
Michael Eshom 10 years ago
parent
commit
845416bef3
1 changed files with 1 additions and 2 deletions
  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'],