Commit 630dd7b9 by Jansa Jose

get mechanic review

parent 88b7b35c
......@@ -1525,7 +1525,7 @@ class Webservice_model extends CI_Model {
if($start != 0 || $per_page != 0){
$this->db->limit($per_page,$start);
}
$review = $this->db->get_where('mechanic_rating',array('mechanic_id'=>$postData['mechanic_id'],'status'=>'1'));
$review = $this->db->get_where('mechanic_rating',array('mechanic_id'=>$postData['mechanic_id'],'mechanic_rating.status'=>'1'));
if(!empty($review) && !empty($reviewData = $review->result_array())){
foreach ($reviewData as $key => $value) {
$reviewData[$key]['rate'] = (float)$value['rate'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment