Skip to content

Commit

Permalink
Dev Fixed missing array keys.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamMousa committed Oct 17, 2013
1 parent f403a65 commit ef80d02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/models/Token.php
Expand Up @@ -143,10 +143,10 @@ public function scopes()
'incomplete' => array(
'condition' => 'completed = "N"'
),
array(
'usable' => array(
'condition' => "COALESCE(validuntil, '$now') >= '$now' AND COALESCE(validfrom, '$now') <= '$now'"
),
array(
'editable' => array(
'condition' => "usesleft > 0 AND COALESCE(validuntil, '$now') >= '$now' AND COALESCE(validfrom, '$now') <= '$now'"
)
);
Expand Down

0 comments on commit ef80d02

Please sign in to comment.