handle !isset($short['ref']) as '', not null
authorJoe Murray <joe.murray@jmaconsulting.biz>
Thu, 6 Aug 2015 15:40:06 +0000 (11:40 -0400)
committerJoe Murray <joe.murray@jmaconsulting.biz>
Thu, 6 Aug 2015 15:40:06 +0000 (11:40 -0400)
CRM/Core/Block.php

index 0f42416532ec4f5d41fb95a9a35bfec65078202d..9fe861ccbb1d62f63c3fd44390193a9787f9a042 100644 (file)
@@ -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);