Commit a20d7d7d by Tobin

dc

parent 8ccbc854
......@@ -497,7 +497,7 @@ class Webservices extends CI_Controller {
if (!empty($request) && isset($request['phone']) && !empty($request['phone'])) {
$phStatus = $this->Webservice_model->phone_number_availability($request);
if($phStatus){
if($phStatus <= 0){
print json_encode(array('status'=>'success','data'=>array('is_available'=>true)));
} else {
print json_encode(array('status'=>'success','data'=>array('is_available'=>false)));
......
......@@ -797,7 +797,7 @@ function booster_seat($request) {
$data = array('fcm_token' => $request['fcm_token']);
$this->db->where('id', $rs->driver_id)->update('drivers', $data);
$this->db->where('driver_id', $rs->driver_id)->update('drivers', $data);
return true;
......
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