FIX : skeleton class must use db->order rather than ORDER BY into

fetchAll
This commit is contained in:
Florian HENRY 2015-10-14 10:05:42 +02:00
parent 00b610d87f
commit 6b8707516e

View File

@ -244,7 +244,7 @@ class Skeleton_Class extends CommonObject
}
if (!empty($sortfield)) {
$sql .= ' ORDER BY ' . $sortfield . ' ' . $sortorder;
$sql .= $this->db->order($sortfield,$sortorder);
}
if (!empty($limit)) {
$sql .= ' ' . $this->db->plimit($limit + 1, $offset);