Fix session_id and visible_result creation issue - refs BT#9068

1.10.x
Imanol Losada 10 years ago
parent aca31b5e12
commit f37f0bd3c6
  1. 4
      main/survey/survey.lib.php

@ -344,8 +344,8 @@ class survey_manager
'".Database::escape_string($values['survey_thanks'])."',
'".api_get_utc_datetime()."',
'".Database::escape_string($values['anonymous'])."'".$additional['values'].",
'".Database::escape_string($values['visible_results'])."',
".api_get_session_id()."
'".api_get_session_id()."',
".Database::escape_string($values['visible_results'])."
)";
Database::query($sql);
$survey_id = Database::insert_id();

Loading…
Cancel
Save