Jelajahi Sumber

! LIMIT 1 makes no sense on a query that does COUNT()

Signed-off-by: Michael Eshom <[email protected]>
Michael Eshom 10 tahun lalu
induk
melakukan
036549b163
1 mengubah file dengan 1 tambahan dan 2 penghapusan
  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'],