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:
nate 2007-01-22 19:21:21 +00:00
parent 7d9ab97745
commit 51cf77d4cc

View file

@ -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) . " = ''";