1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-03 06:55:03 +03:00

Merge commit '2f72e9a801a8b8147ddc1f486a51f5a05381a9df' into framework

This commit is contained in:
Mzhelskiy Maxim 2012-12-29 12:57:51 +04:00
parent b8b3a822cb
commit 672b9f65d8

View file

@ -231,7 +231,7 @@ class MapperORM extends Mapper {
$sFilterFields='';
foreach ($aFilterFields as $k => $v) {
$aK=explode(' ',trim($k));
$sFieldCurrent=$aK[0];
$sFieldCurrent=$this->oDb->escape($aK[0],true);
$sConditionCurrent=' = ';
if (count($aK)>1) {
$sConditionCurrent=strtolower($aK[1]);
@ -273,7 +273,7 @@ class MapperORM extends Mapper {
} elseif (!in_array($value,array('asc','desc'))) {
$value='asc';
}
$key = $oEntitySample->_getField($key);
$key = $this->oDb->escape($oEntitySample->_getField($key),true);
$sOrder.=" {$key} {$value},";
}
$sOrder=trim($sOrder,',');