Skip to content

Commit

Permalink
Fixed issue #8525
Browse files Browse the repository at this point in the history
  • Loading branch information
SamMousa committed Jan 26, 2014
1 parent d7fc05f commit e1ff280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/Survey.php
Expand Up @@ -127,7 +127,7 @@ public function scopes()
{
return array(
'active' => array('condition' => "active = 'Y'"),
'open' => array('condition' => '(startdate > :now OR startdate IS NULL) AND (expires < :now OR expires IS NULL)', 'params' => array(
'open' => array('condition' => '(startdate <= :now OR startdate IS NULL) AND (expires >= :now OR expires IS NULL)', 'params' => array(
':now' => dateShift(date("Y-m-d H:i:s"), "Y-m-d H:i:s", Yii::app()->getConfig("timeadjust"))
)),
'public' => array('condition' => "listpublic = 'Y'"),
Expand Down

0 comments on commit e1ff280

Please sign in to comment.