From 0478f534288b80ec264053d5387600955c7a5924 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 5 Jan 2022 18:49:18 +1300 Subject: [PATCH] Ensure dashboardLinks assigned to prevent e-notice Rather than no assign assign an empty array. It is processed with a foreach so all good --- CRM/Core/Block.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/CRM/Core/Block.php b/CRM/Core/Block.php index 8394310dc2..695e8a6c3f 100644 --- a/CRM/Core/Block.php +++ b/CRM/Core/Block.php @@ -464,10 +464,6 @@ class CRM_Core_Block { ); } - if (empty($dashboardLinks)) { - return NULL; - } - $values = []; foreach ($dashboardLinks as $dash) { $value = []; -- 2.25.1