Fixed a bug where the wrong cached value was being returned
If the item tree had already been read, the items DAO would return the tree instead of the list when getTreeList() was being called.
This commit is contained in:
parent
b9b26bfd66
commit
b8db2ae5b6
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ class DAO_Items
|
|||
public function getTreeList( )
|
||||
{
|
||||
if ( $this->tree !== null ) {
|
||||
return $this->tree;
|
||||
return $this->treeList;
|
||||
}
|
||||
$this->loadTree( );
|
||||
return $this->treeList;
|
||||
|
|
Loading…
Reference in a new issue