mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
removing redundant $not from previous commit
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7216 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
7d06612b35
commit
a0c4d2783a
1 changed files with 3 additions and 3 deletions
|
@ -1760,19 +1760,19 @@ class DboSource extends DataSource {
|
||||||
}
|
}
|
||||||
|
|
||||||
$value = $this->conditionKeysToString($value, $quoteValues, $model);
|
$value = $this->conditionKeysToString($value, $quoteValues, $model);
|
||||||
|
|
||||||
if (strpos($join, 'NOT') !== false) {
|
if (strpos($join, 'NOT') !== false) {
|
||||||
if (strtoupper(trim($key)) == 'NOT') {
|
if (strtoupper(trim($key)) == 'NOT') {
|
||||||
$key = 'AND ' . trim($key);
|
$key = 'AND ' . trim($key);
|
||||||
}
|
}
|
||||||
$not = 'NOT ';
|
$not = 'NOT ';
|
||||||
} else {
|
|
||||||
$not = null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($value[1])) {
|
if (empty($value[1])) {
|
||||||
if ($not) {
|
if ($not) {
|
||||||
$out[] = $not . '(' . $value[0] . ')';
|
$out[] = $not . '(' . $value[0] . ')';
|
||||||
} else {
|
} else {
|
||||||
$out[] = $not . $value[0] ;
|
$out[] = $value[0] ;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$out[] = '(' . $not . '(' . join(') ' . strtoupper($key) . ' (', $value) . '))';
|
$out[] = '(' . $not . '(' . join(') ' . strtoupper($key) . ' (', $value) . '))';
|
||||||
|
|
Loading…
Add table
Reference in a new issue