Commit e6f08bc6 by Tobin

dc

parent 10b41505
......@@ -109,7 +109,7 @@ class Event extends CI_Controller {
'weekend_price'=>$_POST['weekend_price'][$i]);
}
$_POST['custom_seat_layout'] = json_encode($cstmSeatLayout);
} else if (isset($_POST['price']) && !empty($_POST['price']) &&
} else if (isset($_POST['price']) && $_POST['price'] != '' &&
isset($_POST['capacity']) && !empty($_POST['capacity'])){
$seatPriceArr = array('price'=>$_POST['price'],'capacity'=>$_POST['capacity']);
foreach($language AS $lang) {
......@@ -290,7 +290,7 @@ class Event extends CI_Controller {
'weekend_price'=>$_POST['weekend_price'][$i]);
}
$_POST['custom_seat_layout'] = json_encode($cstmSeatLayout);
} else if(isset($_POST['price']) && !empty($_POST['price']) &&
} else if(isset($_POST['price']) && $_POST['price'] != '' &&
isset($_POST['capacity']) && !empty($_POST['capacity'])){
$seatPriceArr = array('price'=>$_POST['price'],'capacity'=>$_POST['capacity']);
foreach($language AS $lang) {
......
......@@ -1100,7 +1100,7 @@ class Api_model extends CI_Model {
INNER JOIN event_date_time ON events.event_id=event_date_time.event_id $case
WHERE events.status = 1 AND event_date_time.status='1' $where
GROUP BY events.event_id";
$count = $this->db->query()->num_rows($sql);
$count = $this->db->query($sql)->num_rows();
if(isset($data['venue_id']) && !empty($data['venue_id'])) {
$where .= " AND locality.id ='".$data['venue_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