Project

General

Profile

Feature #23051 » quoteFieldsInArray.diff

Administrator Admin, 2010-06-30 14:28

View differences:

class.t3lib_db.php (working copy)
$noQuote = FALSE;
}
$fields = $this->admin_get_fields($table);
foreach($arr as $k => $v) {
if ($noQuote === FALSE || !in_array($k, $noQuote)) {
$arr[$k] = $this->fullQuoteStr($v, $table);
if(in_array($k, $fields)) {
if ($noQuote === FALSE || !in_array($k, $noQuote)) {
$arr[$k] = $this->fullQuoteStr($v, $table);
}
} else {
unset($arr[$k]);
}
}
return $arr;
(2-2/5)