- Quote the field in the ORDER part of the sql, in case it happens to be an sql

keyword.
This commit is contained in:
dave 2007-01-10 07:28:12 +00:00
parent b022cb5978
commit e43bcb1a7d

View File

@ -903,7 +903,7 @@ class TableEditor
} }
} }
if($this->sortField()) if($this->sortField())
$query.=" ORDER BY ".$this->sortField().""; $query.=" ORDER BY `".$this->sortField()."`";
if($this->rowsPerPage>0) if($this->rowsPerPage>0)
{ {