@@ -369,11 +369,13 @@ public function getTalksBySpeaker($user_id, $resultsperpage, $start)
369
369
public function createTalk (array $ data )
370
370
{
371
371
// TODO map from the field mappings in getVerboseFields()
372
- $ sql = 'insert into talks (event_id, talk_title, talk_desc, '
373
- . 'slides_link, lang, date_given, duration) '
374
- . 'values (:event_id, :talk_title, :talk_description, '
375
- . ':slides_link, (select ID from lang where lang_name = :language), '
376
- . ':date, :duration) ' ;
372
+ $ sql = '
373
+ insert into talks (event_id, talk_title, talk_desc,
374
+ slides_link, lang, date_given, duration)
375
+ values (:event_id, :talk_title, :talk_description,
376
+ (select ID from lang where lang_name = :language),
377
+ :date, :duration)
378
+ ' ;
377
379
378
380
$ stmt = $ this ->_db ->prepare ($ sql );
379
381
$ response = $ stmt ->execute (array (
@@ -383,7 +385,6 @@ public function createTalk(array $data)
383
385
':language ' => $ data ['language ' ],
384
386
':date ' => $ data ['date ' ],
385
387
':duration ' => $ data ['duration ' ],
386
- ':slides_link ' => $ data ['slides_link ' ],
387
388
));
388
389
$ talk_id = $ this ->_db ->lastInsertId ();
389
390
0 commit comments