Commit 5e59a72b authored by Taylor Otwell's avatar Taylor Otwell

fix bug in paginator.

parent e88d2213
...@@ -679,7 +679,9 @@ class Query { ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment