Skip to content

Commit b409fef

Browse files
author
Paul Canning
committed
Fixed count_unread_pms not checking for deleted status.
1 parent 3932bef commit b409fef

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
@@ -2119,6 +2119,8 @@ public function count_unread_pms($receiver_id=FALSE){
21192119

21202120
$query = $this->aauth_db->where('receiver_id', $receiver_id);
21212121
$query = $this->aauth_db->where('date_read', NULL);
2122+
$query = $this->aauth_db->where('pm_deleted_sender', NULL);
2123+
$query = $this->aauth_db->where('pm_deleted_receiver', NULL);
21222124
$query = $this->aauth_db->get( $this->config_vars['pms'] );
21232125

21242126
return $query->num_rows();

0 commit comments

Comments
 (0)