diff --git a/CRM/Contact/BAO/ContactType.php b/CRM/Contact/BAO/ContactType.php index bc4b1faf3b1d..cea03684472c 100644 --- a/CRM/Contact/BAO/ContactType.php +++ b/CRM/Contact/BAO/ContactType.php @@ -95,8 +95,9 @@ public static function basicTypeInfo($all = FALSE) { $sql .= " AND is_active = 1"; } + $params = array(); $dao = CRM_Core_DAO::executeQuery($sql, - CRM_Core_DAO::$_nullArray, + $params, FALSE, 'CRM_Contact_DAO_ContactType' ); diff --git a/CRM/Core/BAO/EntityTag.php b/CRM/Core/BAO/EntityTag.php index b193cb7168ea..a14e947ee74e 100644 --- a/CRM/Core/BAO/EntityTag.php +++ b/CRM/Core/BAO/EntityTag.php @@ -412,7 +412,8 @@ public static function buildOptions($fieldName, $context = NULL, $props = array( // Output tag list as nested hierarchy // TODO: This will only work when api.entity is "entity_tag". What about others? if ($context == 'search' || $context == 'create') { - return CRM_Core_BAO_Tag::getTags(CRM_Utils_Array::value('entity_table', $props, 'civicrm_contact'), CRM_Core_DAO::$_nullArray, CRM_Utils_Array::value('parent_id', $params), '- '); + $dummyArray = array(); + return CRM_Core_BAO_Tag::getTags(CRM_Utils_Array::value('entity_table', $props, 'civicrm_contact'), $dummyArray, CRM_Utils_Array::value('parent_id', $params), '- '); } }