mod/lesson, mod/quiz: remove deprecated sql_paging_limit(), use offset, limit parameters

This commit is contained in:
martinlanghoff 2006-09-26 05:11:29 +00:00
parent 1ad5c6380f
commit ea9a729f80
2 changed files with 3 additions and 4 deletions

View file

@ -389,8 +389,7 @@
/// Get the actual records
$limit = sql_paging_limit($page * $nowperpage, $nowperpage);
$records = get_records_sql($sqlselect.$limit);
$records = get_records_sql($sqlselect, $page * $nowperpage, $nowperpage);
if (empty($records)) { // Nothing to show!
if ($record) { // Something was requested so try to show that at least (bug 5132)