projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
491fb2c
)
CRM-13969 - Fix error if no tags defined
author
Coleman Watts
<coleman@civicrm.org>
Thu, 12 Dec 2013 22:28:45 +0000
(14:28 -0800)
committer
Coleman Watts
<coleman@civicrm.org>
Thu, 12 Dec 2013 22:28:45 +0000
(14:28 -0800)
CRM/Core/BAO/Tag.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Core/BAO/Tag.php
b/CRM/Core/BAO/Tag.php
index fcf7ff7e21805e538a0e1bff81f0539adfc713c9..ddd639cb04750d2bca372ea874799fceea473c44 100644
(file)
--- 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 = ' '
) {
+ 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.