Skip to content

Commit

Permalink
where status >= 1
Browse files Browse the repository at this point in the history
  • Loading branch information
eaCe authored Mar 3, 2024
1 parent 87c54b0 commit 7b905c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/neues.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class neues
public static function getList(int $rowsPerPage = 10, string $pageCursor = 'page'): string
{
$query = neues_entry::query()
->whereRaw('status = 0 OR status = 1')
->where('status', 1, '>=')
->where('publishdate', rex_sql::datetime(), '<=')
->orderBy('publishdate', 'desc');
$pager = new rex_pager($rowsPerPage, $pageCursor);
Expand Down

0 comments on commit 7b905c6

Please sign in to comment.