* @todo use consistent naming for the functions (save vs store for instance)
@ -113,7 +113,7 @@ class survey_manager
$shared_survey_id=0;
if (!$values['survey_id'] OR !is_numeric($values['survey_id']))
{
{
// check if the code doesn't soon exists in this language
$sql = 'SELECT 1 FROM '.$table_survey.' WHERE code="'.Database::escape_string($values['survey_code']).'" AND lang="'.Database::escape_string($values['survey_language']).'"';