Skip to content

Commit

Permalink
Fixed issue: Can't start survey on Postgres or MSSQL
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Dec 5, 2013
1 parent b51cc32 commit a3e6eb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/Token.php
Expand Up @@ -141,7 +141,7 @@ public function scopes()

return array(
'incomplete' => array(
'condition' => 'completed = "N"'
'condition' => "completed = 'N'"
),
'usable' => array(
'condition' => "COALESCE(validuntil, '$now') >= '$now' AND COALESCE(validfrom, '$now') <= '$now'"
Expand Down

0 comments on commit a3e6eb4

Please sign in to comment.