Commit 437dd89c by Jansa Jose

review

parent e33f2e6e
......@@ -1126,7 +1126,7 @@ class Webservice_model extends CI_Model {
}
$postData['datetime'] = date('Y-m-d h:i:s');
$result = $this->db->get_where('product_rating',array('product_id'=>$postData['product_id'],'customer_id'=>$postData['customer_id']));
if(!empty($result) && $result->num_rows > 0 && !empty($result = $result->row())){
if(!empty($result) || $result->num_rows > 0 || !empty($result = $result->row())){
$respArr['status'] = 'error';
$respArr['message'] = 'Sorry Your are Already Rated for this Product';
return $respArr;
......
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