From: Joe Murray Date: Thu, 6 Aug 2015 15:40:06 +0000 (-0400) Subject: handle !isset($short['ref']) as '', not null X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=13613aae85abdfa0b306481ae5a08f4978bce8bc;p=civicrm-core.git handle !isset($short['ref']) as '', not null --- diff --git a/CRM/Core/Block.php b/CRM/Core/Block.php index 0f42416532..9fe861ccbb 100644 --- a/CRM/Core/Block.php +++ b/CRM/Core/Block.php @@ -459,7 +459,7 @@ class CRM_Core_Block { $value['url'] = CRM_Utils_System::url($short['path'], $short['query'], FALSE); } $value['title'] = $short['title']; - $value['ref'] = $short['ref']; + $value['ref'] = isset($short['ref']) ? $short['ref'] : ''; if (!empty($short['shortCuts'])) { foreach ($short['shortCuts'] as $shortCut) { $value['shortCuts'][] = self::setShortcutValues($shortCut);