Describe the bug
Parameters are the opposite
public function prepareLimit($limit, $offset = null)
{
if ($offset) {
$this->setLimit = ' LIMIT ' . $limit . ', ' . $offset . '';
} else {
$this->setLimit = ' LIMIT ' . $limit . '';
}
return $this;
}
Should be
public function prepareLimit($limit, $offset = null)
{
if ($offset) {
$this->setLimit = ' LIMIT ' . $offset . ', ' . $limit . '';
} else {
$this->setLimit = ' LIMIT ' . $limit . '';
}
return $this;
}
Describe the bug
Parameters are the opposite
Should be