Skip to content

Commit

Permalink
Fixed count_unread_pms not checking for deleted status.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Canning committed Jul 22, 2016
1 parent 3932bef commit b409fef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions application/libraries/Aauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -2119,6 +2119,8 @@ public function count_unread_pms($receiver_id=FALSE){

$query = $this->aauth_db->where('receiver_id', $receiver_id);
$query = $this->aauth_db->where('date_read', NULL);
$query = $this->aauth_db->where('pm_deleted_sender', NULL);
$query = $this->aauth_db->where('pm_deleted_receiver', NULL);
$query = $this->aauth_db->get( $this->config_vars['pms'] );

return $query->num_rows();
Expand Down

0 comments on commit b409fef

Please sign in to comment.