From 5bb333986fa9ac8640616f0c5a68ae292047b8ed Mon Sep 17 00:00:00 2001 From: eileen Date: Wed, 15 Jan 2020 10:31:47 +1300 Subject: [PATCH] Enotice fix --- CRM/Contact/BAO/SavedSearch.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CRM/Contact/BAO/SavedSearch.php b/CRM/Contact/BAO/SavedSearch.php index 78ddca5545..295502d770 100644 --- a/CRM/Contact/BAO/SavedSearch.php +++ b/CRM/Contact/BAO/SavedSearch.php @@ -74,6 +74,9 @@ class CRM_Contact_BAO_SavedSearch extends CRM_Contact_DAO_SavedSearch { * * @return array * the values of the posted saved search used as default values in various Search Form + * + * @throws \CRM_Core_Exception + * @throws \CiviCRM_API3_Exception */ public static function getFormValues($id) { $specialDateFields = [ @@ -82,7 +85,7 @@ class CRM_Contact_BAO_SavedSearch extends CRM_Contact_DAO_SavedSearch { ]; $fv = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_SavedSearch', $id, 'form_values'); - $result = NULL; + $result = []; if ($fv) { // make sure u CRM_Utils_String::unserialize - since it's stored in serialized form $result = CRM_Utils_String::unserialize($fv); @@ -200,6 +203,9 @@ class CRM_Contact_BAO_SavedSearch extends CRM_Contact_DAO_SavedSearch { * @param int $id * * @return array + * + * @throws \CRM_Core_Exception + * @throws \CiviCRM_API3_Exception */ public static function getSearchParams($id) { $fv = self::getFormValues($id); -- 2.25.1