Pārlūkot izejas kodu

! More logic issues...

Signed-off-by: Michael Eshom <[email protected]>
Michael Eshom 10 gadi atpakaļ
vecāks
revīzija
1cac26f2c6
1 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  1. 4 2
      Sources/PersonalMessage.php

+ 4 - 2
Sources/PersonalMessage.php

@@ -2733,8 +2733,10 @@ function MessageActionsApply()
 					)
 				);
 
-				// Good to go here
-				if ($smcFunc['db_num_rows']($request2) == 1);
+				// How many labels do you have?
+				list ($num_labels) = $smcFunc['db_fetch_assoc']($request2);
+
+				if ($num_labels > 0);
 					$context['can_remove_inbox'] = true;
 
 				$smcFunc['db_free_result']($request2);