Commit 0533048d by Jansa Jose

j : organizer app edit event details

parent 348b2116
......@@ -218,7 +218,8 @@ class Organizer_model extends CI_Model {
array('status'=>'1','event_id'=>$postData['event_id']));
if($postData['show_type'] == 1){
$date = $postData['start_date'];
foreach (json_decode($postData['show_timing']) AS $time) {
$showTiming = is_array($postData['show_timing'])?$postData['show_timing']:json_decode($postData['show_timing']);
foreach ($showTiming AS $time) {
$insertEventDate[] = array('event_id'=>$postData['event_id'],'date'=>$date,'time'=>$time);
}
} 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