Skip to content

Commit

Permalink
Merge branch 'pr/16' into version2020041302
Browse files Browse the repository at this point in the history
  • Loading branch information
MaksimBurnin committed Aug 12, 2020
2 parents 649f281 + 33a99b5 commit c03b144
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions classes/log.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected function fetch_data(){
'courseid'
];

$where = ['1'];
$where = ['TRUE'];
$params = $this->filters;

if(isset($params['from[day]']) && isset($params['from[month]']) && isset($params['from[year]'])){
Expand Down Expand Up @@ -104,10 +104,10 @@ protected function fetch_data(){
. ' LEFT JOIN {user} u ON u.id=e.userid '
. ' WHERE '.implode(' AND ', $where)
. ($orderBy ? ' ORDER BY '. $orderBy : '')
. ' LIMIT '.($this->page * $this->per_page).','.$this->per_page
. ' LIMIT '.$this->per_page.' OFFSET '.($this->page * $this->per_page)
;

$queryCount = 'SELECT count(e.id) as `count` FROM {availability_examus} e '
$queryCount = 'SELECT count(e.id) as count FROM {availability_examus} e '
. ' LEFT JOIN {user} u ON u.id=e.userid '
. ' WHERE '.implode(' AND ', $where);

Expand All @@ -123,7 +123,7 @@ protected function setup_table(){
$table = new \flexible_table('availability_examus_table');

$table->define_columns([
'timemodified', 'timescheduled', 'u_email', 'courseid',
'timemodified', 'timescheduled', 'u_email', 'courseid',
'cmid', 'status', 'review_link', 'create_entry'
]);

Expand Down

0 comments on commit c03b144

Please sign in to comment.