From: Eileen McNaughton Date: Wed, 5 Jan 2022 05:49:18 +0000 (+1300) Subject: Ensure dashboardLinks assigned to prevent e-notice X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0478f534288b80ec264053d5387600955c7a5924;p=civicrm-core.git Ensure dashboardLinks assigned to prevent e-notice Rather than no assign assign an empty array. It is processed with a foreach so all good --- 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 = [];