From 13bdd6d22bddb635d820d6f5eb7dc38df9687fb6 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 13 Aug 2019 17:10:29 -0400 Subject: [PATCH] Simplify variable assignment --- ext/afform/core/afform.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/afform/core/afform.php b/ext/afform/core/afform.php index abea0d825b..ec6468a393 100644 --- a/ext/afform/core/afform.php +++ b/ext/afform/core/afform.php @@ -296,7 +296,7 @@ function afform_civicrm_alterMenu(&$items) { $items[$meta['server_route']] = [ 'page_callback' => 'CRM_Afform_Page_AfformBase', 'page_arguments' => 'afform=' . urlencode($name), - 'title' => CRM_Utils_Array::value('title', $meta, ''), + 'title' => $meta['title'] ?? '', 'access_arguments' => [['access CiviCRM'], 'and'], // FIXME 'is_public' => $meta['is_public'], ]; -- 2.25.1