From 5f44b69f37baa68ef3ba3d04190b8d2ae6d46009 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Mon, 7 Nov 2022 09:09:42 +1100 Subject: [PATCH] [REF][PHP8.1] Fix a couple of issues where passing in NULL in string functions is deprecated in PHP8.1 --- CRM/Report/Page/InstanceList.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Report/Page/InstanceList.php b/CRM/Report/Page/InstanceList.php index a327304d37..0d012d97be 100644 --- a/CRM/Report/Page/InstanceList.php +++ b/CRM/Report/Page/InstanceList.php @@ -161,7 +161,7 @@ class CRM_Report_Page_InstanceList extends CRM_Core_Page { continue; } - if (trim($dao->title)) { + if (trim($dao->title ?? '')) { if ($this->ovID) { $this->title = ts("Report(s) created from the template: %1", [1 => $dao->label]); } -- 2.25.1