Prechádzať zdrojové kódy

! More logic issues...

Signed-off-by: Michael Eshom <[email protected]>
Michael Eshom 10 rokov pred
rodič
commit
1cac26f2c6
1 zmenil súbory, kde vykonal 4 pridanie a 2 odobranie
  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);