Permalink
Browse files

user: remove deprecated sql_paging_limit(), use offset, limit parameters

  • Loading branch information...
1 parent ea9a729 commit c4121640be373cc0fa77821d49b84ee5889f321d martinlanghoff committed Sep 26, 2006
Showing with 2 additions and 7 deletions.
  1. +2 −7 user/index.php
View
@@ -425,13 +425,8 @@ function checkchecked(form) {
$table->initialbars($totalcount > $perpage);
$table->pagesize($perpage, $matchcount);
- if ($table->get_page_start() !== '' && $table->get_page_size() !== '') {
- $limit = ' '.sql_paging_limit($table->get_page_start(), $table->get_page_size());
- } else {
- $limit = '';
- }
-
- $students = get_records_sql($select.$from.$where.$wheresearch.$sort.$limit);
+ $students = get_records_sql($select.$from.$where.$wheresearch.$sort,
+ $table->get_page_start(), $table->get_page_size());
if (!$currentrole = get_record('role','id',$roleid)) {
error('That role does not exist');
}

0 comments on commit c412164

Please sign in to comment.