From 6b8f5a2a91204df28899a7817de9459ec1f51296 Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Sat, 9 Jan 2021 12:23:47 -0500 Subject: [PATCH] php 7.4 compatiblity - clarify order --- ext/afform/core/Civi/Api4/Utils/AfformSaveTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/afform/core/Civi/Api4/Utils/AfformSaveTrait.php b/ext/afform/core/Civi/Api4/Utils/AfformSaveTrait.php index 2577ed1323..389faf568a 100644 --- a/ext/afform/core/Civi/Api4/Utils/AfformSaveTrait.php +++ b/ext/afform/core/Civi/Api4/Utils/AfformSaveTrait.php @@ -16,7 +16,7 @@ trait AfformSaveTrait { // If no name given, create a unique name based on the title if (empty($item['name'])) { - $prefix = !empty($item['join']) ? "afjoin-{$item['join']}" : !empty($item['block']) ? 'afblock-' . str_replace('*', 'all', $item['block']) : 'afform'; + $prefix = !empty($item['join']) ? "afjoin-{$item['join']}" : (!empty($item['block']) ? ('afblock-' . str_replace('*', 'all', $item['block'])) : 'afform'); $item['name'] = _afform_angular_module_name($prefix . '-' . \CRM_Utils_String::munge($item['title'], '-')); $suffix = ''; while ( -- 2.25.1