From 54d33f2843e629545f6bf6233cf02a1a2cf4b5ba Mon Sep 17 00:00:00 2001 From: Tim Mallezie Date: Wed, 13 May 2015 21:04:24 +0200 Subject: [PATCH] fix warning when there are no tags --- CRM/Core/BAO/Tag.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/BAO/Tag.php b/CRM/Core/BAO/Tag.php index 9d7e976b29..0e76178d00 100644 --- a/CRM/Core/BAO/Tag.php +++ b/CRM/Core/BAO/Tag.php @@ -100,6 +100,7 @@ class CRM_Core_BAO_Tag extends CRM_Core_DAO_Tag { $dao = CRM_Core_DAO::executeQuery($sql, CRM_Core_DAO::$_nullArray, TRUE, NULL, FALSE, FALSE); $refs = array(); + $this->tree = array(); while ($dao->fetch()) { $thisref = &$refs[$dao->id]; @@ -115,7 +116,6 @@ class CRM_Core_BAO_Tag extends CRM_Core_DAO_Tag { $refs[$dao->parent_id]['children'][$dao->id] = &$thisref; } } - } /** -- 2.25.1