1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-09 08:06:38 +02:00

tree bugfix

This commit is contained in:
secretr
2010-05-02 14:04:41 +00:00
parent e78f6578fe
commit 322641881f

View File

@@ -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()); $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(); $sql = e107::getDb();
$this->_total = $sql->total_results = false; $this->_total = $sql->total_results = false;