Fix "where" condition in assignments list preventing them to appear in assignments homepage

1.10.x
Yannick Warnier 10 years ago
parent 0153e50b3a
commit d4c78797e0
  1. 6
      main/work/work.lib.php

@ -1345,6 +1345,9 @@ function getWorkListStudent(
if (!in_array($direction, array('asc','desc'))) {
$direction = 'desc';
}
if (!empty($where_condition)) {
$where_condition = ' AND ' . $where_condition;
}
$column = !empty($column) ? Database::escape_string($column) : 'sent_date';
$start = intval($start);
@ -1483,6 +1486,9 @@ function getWorkListTeacher(
if (!in_array($direction, array('asc', 'desc'))) {
$direction = 'desc';
}
if (!empty($where_condition)) {
$where_condition = ' AND ' . $where_condition;
}
$column = !empty($column) ? Database::escape_string($column) : 'sent_date';
$start = intval($start);

Loading…
Cancel
Save