Skip to content

Commit

Permalink
fix expPaginator error
Browse files Browse the repository at this point in the history
(cherry picked from commit 5d09622)
  • Loading branch information
dleffler committed Nov 12, 2016
1 parent 6e0f150 commit 82b86ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions framework/core/subsystems/expPaginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,9 @@ public function __construct($params=array()) {
} elseif (!empty($class)) { //where clause //FJD: was $this->class, but wasn't working...
$this->total_records = $class->find('count', $this->where);
$this->records = $class->find('all', $this->where, $sort, $limit, $this->start);
} elseif (!empty($this->where)) { //from Merge....where clause
$this->total_records = $class->find('count', $this->where);
$this->records = $class->find('all', $this->where, $sort, $limit, $this->start);
// } elseif (!empty($this->where)) { //from Merge....where clause //fixme this breaks since you need a $class here and we've already handled that above
// $this->total_records = $class->find('count', $this->where);
// $this->records = $class->find('all', $this->where, $sort, $limit, $this->start);
} else { //sql clause //FIXME we don't get attachments in this approach
//$records = $db->selectObjectsBySql($this->sql);
//$this->total_records = count($records);
Expand Down

0 comments on commit 82b86ea

Please sign in to comment.