From e404e0a5c7b0caf3440c0183ca2f0a151cd565f7 Mon Sep 17 00:00:00 2001 From: Paul Canning Date: Mon, 25 Jul 2016 16:14:08 +0100 Subject: [PATCH] Fix for list_pms --- application/libraries/Aauth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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');