fix bug in paginator.
This commit is contained in:
@@ -679,7 +679,9 @@ class Query {
|
|||||||
// retrieved the count from the table.
|
// retrieved the count from the table.
|
||||||
list($orderings, $this->orderings) = array($this->orderings, null);
|
list($orderings, $this->orderings) = array($this->orderings, null);
|
||||||
|
|
||||||
$page = Paginator::page($total = $this->count($columns), $per_page);
|
$total = $this->count(reset($columns));
|
||||||
|
|
||||||
|
$page = Paginator::page($total, $per_page);
|
||||||
|
|
||||||
$this->orderings = $orderings;
|
$this->orderings = $orderings;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user