mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Fixing magic method query generation for array condition values (Ticket #2008)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4340 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
8307f2bc85
commit
4f794248af
1 changed files with 6 additions and 1 deletions
|
@ -210,7 +210,12 @@ class DboSource extends DataSource {
|
|||
$c = 0;
|
||||
$query = array();
|
||||
foreach ($field as $f) {
|
||||
$query[$args[2]->name . '.' . $f] = '= ' . $params[$c++];
|
||||
if (!is_array($params[$c])) {
|
||||
$query[$args[2]->name . '.' . $f] = '= ' . $params[$c];
|
||||
} else {
|
||||
$query[$args[2]->name . '.' . $f] = $params[$c];
|
||||
}
|
||||
$c++;
|
||||
}
|
||||
|
||||
if ($or) {
|
||||
|
|
Loading…
Add table
Reference in a new issue