Skip to content

Commit 5cbff6c

Browse files
authored
Merge pull request #163 from paulcanning/2.5-stable
Fix for count_unread_pms
2 parents 6fb3db6 + b409fef commit 5cbff6c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

application/libraries/Aauth.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2054,6 +2054,8 @@ public function count_unread_pms($receiver_id=FALSE){
20542054

20552055
$query = $this->aauth_db->where('receiver_id', $receiver_id);
20562056
$query = $this->aauth_db->where('date_read', NULL);
2057+
$query = $this->aauth_db->where('pm_deleted_sender', NULL);
2058+
$query = $this->aauth_db->where('pm_deleted_receiver', NULL);
20572059
$query = $this->aauth_db->get( $this->config_vars['pms'] );
20582060

20592061
return $query->num_rows();

0 commit comments

Comments
 (0)