Project

General

Profile

Bug #25488 ยป 25488.diff

a patch proposal - Patrick Schriner, 2011-03-31 12:16

View differences:

t3lib/class.t3lib_sqlparser.php
$output .= isset($v['func']['pos']) ? ', ' . $v['func']['pos'][0] : '';
$output .= ')';
} elseif (isset($v['func']) && $v['func']['type'] === 'IFNULL') {
$output = ' ' . trim($v['modifier']) . ' IFNULL(';
$output .= ' ' . trim($v['modifier']) . ' IFNULL(';
$output .= ($v['func']['table'] ? $v['func']['table'] . '.' : '') . $v['func']['field'];
$output .= ', ' . $v['func']['default'][1] . $this->compileAddslashes($v['func']['default'][0]) . $v['func']['default'][1];
$output .= ')';
} elseif (isset($v['func']) && $v['func']['type'] === 'FIND_IN_SET') {
$output = ' ' . trim($v['modifier']) . ' FIND_IN_SET(';
$output .= ' ' . trim($v['modifier']) . ' FIND_IN_SET(';
$output .= $v['func']['str'][1] . $v['func']['str'][0] . $v['func']['str'][1];
$output .= ', ' . ($v['func']['table'] ? $v['func']['table'] . '.' : '') . $v['func']['field'];
$output .= ')';
    (1-1/1)