diff --git a/application/libraries/Aauth.php b/application/libraries/Aauth.php index a18951a..0925307 100644 --- a/application/libraries/Aauth.php +++ b/application/libraries/Aauth.php @@ -1983,11 +1983,11 @@ class Aauth { public function list_pms($limit=5, $offset=0, $receiver_id=NULL, $sender_id=NULL){ if (is_numeric($receiver_id)){ $query = $this->aauth_db->where('receiver_id', $receiver_id); - $query = $this->aauth_db->where('pm_deleted_receiver', 0); + $query = $this->aauth_db->where('pm_deleted_receiver', NULL); } if (is_numeric($sender_id)){ $query = $this->aauth_db->where('sender_id', $sender_id); - $query = $this->aauth_db->where('pm_deleted_sender', 0); + $query = $this->aauth_db->where('pm_deleted_sender', NULL); } $query = $this->aauth_db->order_by('id','DESC');