From 322641881f67eb8880453f7783439b3a6a41e521 Mon Sep 17 00:00:00 2001 From: secretr Date: Sun, 2 May 2010 14:04:41 +0000 Subject: [PATCH] tree bugfix --- e107_handlers/model_class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e107_handlers/model_class.php b/e107_handlers/model_class.php index 0bd335516..29b81de4e 100644 --- a/e107_handlers/model_class.php +++ b/e107_handlers/model_class.php @@ -2300,7 +2300,7 @@ class e_tree_model extends e_model $this->getParam('db_query', 'SELECT'.(!$this->getParam('nocount') ? ' SQL_CALC_FOUND_ROWS' : '').' * FROM '.$this->getModelTable()); } - if($this->getParam('db_query') && $class_name && class_exists($this->getParam('model_class'))) + if($this->getParam('db_query') && $class_name && class_exists($class_name)) { $sql = e107::getDb(); $this->_total = $sql->total_results = false;