mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Fixing issue with conditional values being empty arrays in DboSource::conditionKeysToString()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4319 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
7d9ab97745
commit
51cf77d4cc
1 changed files with 1 additions and 1 deletions
|
@ -1382,7 +1382,7 @@ class DboSource extends DataSource {
|
|||
}
|
||||
} elseif(is_numeric($key)) {
|
||||
$data = ' ' . $value;
|
||||
} elseif($value === null) {
|
||||
} elseif($value === null || (is_array($value) && empty($value))) {
|
||||
$data = $this->name($key) . ' IS NULL';
|
||||
} elseif($value === '') {
|
||||
$data = $this->name($key) . " = ''";
|
||||
|
|
Loading…
Add table
Reference in a new issue