Project

General

Profile

Bug #25489 ยป class_ux_t3lib_db.php.patch

Patch proposal - Patrick Schriner, 2011-03-31 12:24

View differences:

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;
    (1-1/1)