Skip to content

Commit

Permalink
Fixed Issue #0NR: survey activation failing due to sql error
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@8574 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
Amit Shanker committed Apr 10, 2010
1 parent e608339 commit e982f1b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions admin/activate.php
Expand Up @@ -273,9 +273,10 @@
$presult=db_execute_assoc($pquery);
while($prow=$presult->FetchRow())
{
if ($createsurvey!='') {$createsurvey .= ",\n";}
if ($prow['private'] == "N")
{
$createsurvey .= " token C(36),\n";
$createsurvey .= " token C(36)";
$surveynotprivate="TRUE";
}
if ($prow['allowregister'] == "Y")
Expand All @@ -284,12 +285,12 @@
}
if ($prow['ipaddr'] == "Y")
{
$createsurvey .= " ipaddr X,\n";
$createsurvey .= " ipaddr X";
}
//Check to see if 'refurl' field is required.
if ($prow['refurl'] == "Y")
{
$createsurvey .= " refurl X,\n";
$createsurvey .= " refurl X";
}
}
//Get list of questions for the base language
Expand Down

0 comments on commit e982f1b

Please sign in to comment.