Commit ed207d7c by Jansa Jose

dc

parent 93b9d39c
...@@ -2781,7 +2781,7 @@ ...@@ -2781,7 +2781,7 @@
foreach ($result as $key => $value) { foreach ($result as $key => $value) {
$new_time = date("Y-m-d H:i:s",strtotime("+10 minutes", strtotime($value['datetime']))); $new_time = date("Y-m-d H:i:s",strtotime("+10 minutes", strtotime($value['datetime'])));
if(strtotime($current_time) > strtotime($new_time)){ if(strtotime($current_time) > strtotime($new_time)){
if($this->db->update('transaction',array('status'=>'0'))){ if($this->db->update('transaction',array('status'=>'0'),array('id'=>$value['id']))){
if($value['payment_for'] == '1'){ if($value['payment_for'] == '1'){
$this->db->update('bookings',array('status'=>'7'),array('booking_id'=>$value['booking_id'])); $this->db->update('bookings',array('status'=>'7'),array('booking_id'=>$value['booking_id']));
}else{ }else{
......
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