From b8db2ae5b66b11b84672b3784e23be8efeda4e56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= Date: Sat, 16 Jan 2016 23:13:36 +0100 Subject: [PATCH] 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. --- includes/t-data/dao_items.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/t-data/dao_items.inc.php b/includes/t-data/dao_items.inc.php index 4b7cb24..5b83201 100644 --- a/includes/t-data/dao_items.inc.php +++ b/includes/t-data/dao_items.inc.php @@ -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;