mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Adding numeric value quoting fix for DboSource (Ticket #1927)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4411 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
069275ef7c
commit
b4cc0dfd96
1 changed files with 2 additions and 4 deletions
|
@ -1434,10 +1434,8 @@ class DboSource extends DataSource {
|
|||
$match['2'] = str_replace('-!', '', $match['2']);
|
||||
$data = $this->name($key) . ' ' . $match['1'] . ' ' . $match['2'];
|
||||
} else {
|
||||
if ($match['2'] != '' && !is_numeric($match['2'])) {
|
||||
$match['2'] = $this->value($match['2']);
|
||||
$match['2'] = str_replace(' AND ', "' AND '", $match['2']);
|
||||
}
|
||||
$match['2'] = $this->value($match['2']);
|
||||
$match['2'] = str_replace(' AND ', "' AND '", $match['2']);
|
||||
$data = $this->name($key) . ' ' . $match['1'] . ' ' . $match['2'];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue