Skip to content

Commit

Permalink
Fixed #6963: error 2014 (unbuffered queries) after submiting survey
Browse files Browse the repository at this point in the history
  • Loading branch information
mennodekker committed Nov 27, 2012
1 parent 87bc38c commit 7880f37
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions application/helpers/frontend_helper.php
Expand Up @@ -885,6 +885,7 @@ function submittokens($quotaexit=false)
$usesquery = "SELECT usesleft, participant_id, tid FROM {{tokens_$surveyid}} WHERE token='".$clienttoken."'";
$usesresult = dbExecuteAssoc($usesquery);
$usesrow = $usesresult->read();
$usesresult->close();
if (isset($usesrow)) {
$usesleft = $usesrow['usesleft'];
$participant_id=$usesrow['participant_id'];
Expand Down

0 comments on commit 7880f37

Please sign in to comment.