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:
AD7six 2008-06-15 13:08:36 +00:00
parent 16fa9effb0
commit 9d87ce5a06

View file

@ -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));
}