Skip to content

Commit

Permalink
Fixed issue: token checks for UsesLeft option.
Browse files Browse the repository at this point in the history
Dev: I don't know why the 'Assoc' mode of AdoDB changed. The first cause might have other consequences.
Dev: CAUTION, I can't even manage to have a simple survey work. Everything in Survey at Runtime seems BROKEN for me.

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@9695 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
Thibault Le Meur committed Jan 16, 2011
1 parent e8a1447 commit c52068a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common_functions.php
Expand Up @@ -7970,6 +7970,7 @@ function usedTokens($token)
{
global $connect, $dbprefix, $surveyid;
$utresult = true;
$connect->SetFetchMode(ADODB_FETCH_ASSOC);
$tInfo = $connect->getRow("SELECT tid, usesleft from {$dbprefix}tokens_$surveyid WHERE token=".db_quoteall($token));
if (!$tInfo === false) {
if ($tInfo['usesleft']>0) $utresult = false;
Expand Down

0 comments on commit c52068a

Please sign in to comment.