Skip to content

Commit

Permalink
Fixed issue #5455: INSERTANS not working in Multiple options with com…
Browse files Browse the repository at this point in the history
…ments

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@11339 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Nov 8, 2011
1 parent 06bf48e commit d5b2d6b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common_functions.php
Expand Up @@ -5929,6 +5929,10 @@ function retrieve_Answer($code, $phpdateformat=null)
if ($questiondetails['type'] == "M" ||
$questiondetails['type'] == "P")
{
if (strpos($code,'comment')>0 && isset($_SESSION[$code]))
{
return $_SESSION[$code];
}
$query="SELECT * FROM {$dbprefix}questions WHERE parent_qid='".$questiondetails['qid']."' AND language='".$_SESSION['s_lang']."'";
$result=db_execute_assoc($query) or safe_die("Error getting answer<br />$query<br />".$connect->ErrorMsg()); //Checked
while($row=$result->FetchRow())
Expand Down

0 comments on commit d5b2d6b

Please sign in to comment.