FIX : skeleton class must use db->order rather than ORDER BY into
fetchAll
This commit is contained in:
parent
00b610d87f
commit
6b8707516e
@ -244,7 +244,7 @@ class Skeleton_Class extends CommonObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($sortfield)) {
|
if (!empty($sortfield)) {
|
||||||
$sql .= ' ORDER BY ' . $sortfield . ' ' . $sortorder;
|
$sql .= $this->db->order($sortfield,$sortorder);
|
||||||
}
|
}
|
||||||
if (!empty($limit)) {
|
if (!empty($limit)) {
|
||||||
$sql .= ' ' . $this->db->plimit($limit + 1, $offset);
|
$sql .= ' ' . $this->db->plimit($limit + 1, $offset);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user