diff --git a/www/application/models/Account_model.php b/www/application/models/Account_model.php index 6e93e328..249058e2 100644 --- a/www/application/models/Account_model.php +++ b/www/application/models/Account_model.php @@ -19,7 +19,7 @@ class Account_model extends CI_Model { } public function getUserEscrowWallet($member_id) { - $mysql = "SELECT sum(amount),currency FROM members_payments WHERE code ='OFDPS' AND member_id = $member_id AND confirmation IS NOT NULL GROUP BY currency"; + $mysql = "SELECT sum(amount),currency FROM members_payments WHERE code ='OFDPS' AND member_id = $member_id AND confirmation IS NOT NULL AND flags = 4 GROUP BY currency"; $query = $this->db->query($mysql); return $query->result_array(); }