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:
Emmanuel BENOîT 2016-01-16 23:13:36 +01:00
parent b9b26bfd66
commit b8db2ae5b6

View file

@ -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;