Bug #25489 ยป class_ux_t3lib_db.php.patch
class.ux_t3lib_db.php (working copy) | ||
---|---|---|
*/
|
||
protected function _quoteOrderBy(array $orderBy) {
|
||
foreach ($orderBy as $k => $v) {
|
||
$orderBy[$k]['field'] = $this->quoteName($orderBy[$k]['field']);
|
||
if ($orderBy[$k]['table'] != '') {
|
||
$orderBy[$k]['table'] = $this->quoteName($orderBy[$k]['table']);
|
||
if($orderBy[$k]['table'] == '' && $v['field'] != '' && ctype_digit($v['field'])){
|
||
;
|
||
} else {
|
||
$orderBy[$k]['field'] = $this->quoteName($orderBy[$k]['field']);
|
||
if ($orderBy[$k]['table'] != '') {
|
||
$orderBy[$k]['table'] = $this->quoteName($orderBy[$k]['table']);
|
||
}
|
||
}
|
||
}
|
||
return $orderBy;
|