From 26624104953dc8828d4565b53c3ba46ad808f259 Mon Sep 17 00:00:00 2001 From: joesimms Date: Thu, 8 Feb 2007 13:39:27 +0000 Subject: [PATCH] fixed bug to always parse tree options as array --- lib/Doctrine/Table.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Doctrine/Table.php b/lib/Doctrine/Table.php index 54b837487..4f104292d 100644 --- a/lib/Doctrine/Table.php +++ b/lib/Doctrine/Table.php @@ -1393,9 +1393,10 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable public function getTree() { if (isset($this->options['treeImpl'])) { if ( ! $this->tree) { + $options = isset($this->options['treeOptions']) ? $this->options['treeOptions'] : array(); $this->tree = Doctrine_Tree::factory($this, $this->options['treeImpl'], - $this->options['treeOptions'] + $options ); } return $this->tree;