... |
... |
@@ -18,6 +18,7 @@ namespace Oveleon\ContaoMemberExtensionBundle;
|
18 |
18 |
use Contao\BackendTemplate;
|
19 |
19 |
use Contao\Config;
|
20 |
20 |
use Contao\CoreBundle\Exception\PageNotFoundException;
|
|
21 |
+use Contao\Date;
|
21 |
22 |
use Contao\Environment;
|
22 |
23 |
use Contao\FrontendTemplate;
|
23 |
24 |
use Contao\Input;
|
... |
... |
@@ -196,6 +197,9 @@ class ModuleMemberList extends ModuleMemberExtension
|
196 |
197 |
private function getMembers()
|
197 |
198 |
{
|
198 |
199 |
$t = MemberModel::getTable();
|
|
200 |
+ $time = Date::floorToMinute();
|
|
201 |
+
|
|
202 |
+ $arrColumns = ["$t.disable='' AND ($t.start='' OR $t.start<='$time') AND ($t.stop='' OR $t.stop>'$time') "];
|
199 |
203 |
$arrOptions = ['order' => ''];
|
200 |
204 |
|
201 |
205 |
if (!!$this->ext_orderField)
|
... |
... |
@@ -218,6 +222,6 @@ class ModuleMemberList extends ModuleMemberExtension
|
218 |
222 |
break;
|
219 |
223 |
}
|
220 |
224 |
|
221 |
|
- return MemberModel::findBy(["$t.disable=''"], null, $arrOptions);
|
|
225 |
+ return MemberModel::findBy($arrColumns, null, $arrOptions);
|
222 |
226 |
}
|
223 |
227 |
}
|