mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 06:58:41 +00:00
fix: 6926a6f912
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
02ef72b035
commit
0ab54aac78
@ -16,10 +16,11 @@ class Paginator {
|
||||
$this->cur_start = 0;
|
||||
$this->table = $config['data'];
|
||||
} elseif (!isset($config['echo_full'])) {
|
||||
if (!isset($config['pagination_table'])) {
|
||||
$config['pagination_table'] = $config['table'];
|
||||
$table = $config['table_name'];
|
||||
if (isset($config['pagination_table'])) {
|
||||
$table = $config['pagination_table'];
|
||||
}
|
||||
$this->n_rows = DB::selectCount("select count(*) from {$config['pagination_table']} where {$config['cond']}");
|
||||
$this->n_rows = DB::selectCount("select count(*) from {$table} where {$config['cond']}");
|
||||
|
||||
$this->page_len = isset($config['page_len']) ? $config['page_len'] : 10;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user