mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Removing unreachable code
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7793 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
7b224b29eb
commit
8ede5d21d3
1 changed files with 3 additions and 5 deletions
|
@ -1728,10 +1728,9 @@ class DboSource extends DataSource {
|
|||
}
|
||||
|
||||
if (is_array($conditions) && !empty($conditions)) {
|
||||
if (!empty($conditions)) {
|
||||
$out = $this->conditionKeysToString($conditions, $quoteValues, $model);
|
||||
}
|
||||
if (empty($out) || empty($conditions)) {
|
||||
$out = $this->conditionKeysToString($conditions, $quoteValues, $model);
|
||||
|
||||
if (empty($out)) {
|
||||
return $clause . ' 1 = 1';
|
||||
}
|
||||
return $clause . join(' AND ', $out);
|
||||
|
@ -1785,7 +1784,6 @@ class DboSource extends DataSource {
|
|||
} else {
|
||||
$key = $join;
|
||||
}
|
||||
|
||||
$value = $this->conditionKeysToString($value, $quoteValues, $model);
|
||||
|
||||
if (strpos($join, 'NOT') !== false) {
|
||||
|
|
Loading…
Add table
Reference in a new issue