Browse Source

! It is possible we can get a null result in this query, with interesting consequences.

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer 11 năm trước cách đây
mục cha
commit
8f36fff3a7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Sources/PersonalMessage.php

+ 1 - 1
Sources/PersonalMessage.php

@@ -3053,7 +3053,7 @@ function markMessages($personal_messages = null, $label = null, $owner = null)
 		{
 			$total_unread += $row['num'];
 
-			if ($owner != $user_info['id'])
+			if ($owner != $user_info['id'] || empty($row['id_pm']))
 				continue;
 
 			$this_labels = array();