mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
minor syntax correction, changing a string condition to be an array for consistency
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7195 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
16fa9effb0
commit
9d87ce5a06
1 changed files with 1 additions and 1 deletions
|
@ -274,7 +274,7 @@ class TreeBehavior extends ModelBehavior {
|
|||
} else {
|
||||
return array();
|
||||
}
|
||||
$constraint = array($scope, $model->escapeField($right) . ' <' . $item[$right], $model->escapeField($left) . ' >' => $item[$left]);
|
||||
$constraint = array($scope, $model->escapeField($right) . ' <' => $item[$right], $model->escapeField($left) . ' >' => $item[$left]);
|
||||
}
|
||||
return $model->find('all', array('conditions' => $constraint, 'fields' => $fields, 'order' => $order, 'limit' => $limit, 'page' => $page, 'recursive' => $recursive));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue