From dee5ccbb354edbbf5dfb35925f164a10bda151fa Mon Sep 17 00:00:00 2001
From: Coleman Watts <coleman@civicrm.org>
Date: Thu, 12 Dec 2013 14:28:45 -0800
Subject: [PATCH] CRM-13969 - Fix  error if no tags defined

---
 CRM/Core/BAO/Tag.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/CRM/Core/BAO/Tag.php b/CRM/Core/BAO/Tag.php
index fcf7ff7e21..ddd639cb04 100644
--- a/CRM/Core/BAO/Tag.php
+++ b/CRM/Core/BAO/Tag.php
@@ -187,6 +187,9 @@ class CRM_Core_BAO_Tag extends CRM_Core_DAO_Tag {
     $parentId  = NULL,
     $separator = '&nbsp;&nbsp;'
   ) {
+    if (!is_array($tags)) {
+      $tags = array();
+    }
     // We need to build a list of tags ordered by hierarchy and sorted by
     // name. The heirarchy will be communicated by an accumulation of
     // separators in front of the name to give it a visual offset.
-- 
2.25.1