Commit ae86a6d6 by Tobin

Merge branch 'master' into 'dev_production'

dc See merge request !58
parents 2caa4754 02e26495
......@@ -385,7 +385,13 @@ class Webservice_model extends CI_Model {
$cityName = $this->db->select('city')->where('customer_id', $user_id)->get('customer')->row();
$lastBooking = $this->db->query("SELECT booking.id,review.rate FROM booking LEFT JOIN review ON review.event_id = booking.event_id WHERE booking.customer_id = ".$user_id." ORDER BY booking.id DESC LIMIT 1")->row_array();
$sql = "SELECT booking.id,review.rate
FROM booking
LEFT JOIN review ON review.event_id=booking.event_id AND
review.customer_id=booking.customer_id
WHERE booking.customer_id = ".$user_id." AND booking.status='2'
ORDER BY booking.id DESC LIMIT 1";
$lastBooking = $this->db->query($sql)->row_array();
if($lastBooking['id'] != ''){
......
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