diff --git a/cake/libs/model/behaviors/tree.php b/cake/libs/model/behaviors/tree.php index 292e53d07..76717cebd 100644 --- a/cake/libs/model/behaviors/tree.php +++ b/cake/libs/model/behaviors/tree.php @@ -599,7 +599,7 @@ class TreeBehavior extends ModelBehavior { $errors[] = array('node', $instance[$model->name][$model->primaryKey], 'right greater than parent (node ' . $instance['VerifyParent'][$model->primaryKey] . ').'); } - } elseif ($model->findCount(array($scope, $left => '< ' . $instance[$model->name][$left], $right => '> ' . $instance[$model->name][$right]))) { + } elseif ($model->findCount(array($scope, $left . '< ' . $instance[$model->name][$left], $right . '> ' . $instance[$model->name][$right]))) { $errors[] = array('node', $instance[$model->name][$model->primaryKey], 'The parent field is blank, but has a parent'); } } diff --git a/cake/tests/cases/libs/model/model.test.php b/cake/tests/cases/libs/model/model.test.php index 31417e512..5a1b3bbae 100644 --- a/cake/tests/cases/libs/model/model.test.php +++ b/cake/tests/cases/libs/model/model.test.php @@ -2859,8 +2859,7 @@ class ModelTest extends CakeTestCase { $data = array(); $expected = $this->model->save($data); $this->assertFalse($expected); - - } + } /*function testBasicValidation() { $this->model =& new ValidationTest(); diff --git a/cake/tests/fixtures/number_tree_fixture.php b/cake/tests/fixtures/number_tree_fixture.php index 17c0d467c..170a09d64 100644 --- a/cake/tests/fixtures/number_tree_fixture.php +++ b/cake/tests/fixtures/number_tree_fixture.php @@ -43,4 +43,4 @@ class NumberTreeFixture extends CakeTestFixture { 'lft' => array ('type' => 'integer','null' => false), 'rght' => array ('type' => 'integer','null' => false)); } -?> +?> \ No newline at end of file