Fix PHP8.1 repeated notice errors in Table.tpl
authorRich Lott / Artful Robot <code.commits@artfulrobot.uk>
Thu, 24 Aug 2023 15:00:24 +0000 (16:00 +0100)
committerRich Lott / Artful Robot <code.commits@artfulrobot.uk>
Fri, 25 Aug 2023 06:51:38 +0000 (07:51 +0100)
templates/CRM/Report/Form/Layout/Table.tpl

index c95d9a3d08bd48b7ea8d00a9db959331656953ba..58935d52d9b062648236e2aedef2bd234d9c007e 100644 (file)
                     {assign var=fieldClass value=$field|cat:"_class"}
                     <td class="crm-report-{$field}{if $header.type eq 1024 OR $header.type eq 1 OR $header.type eq 512} report-contents-right{elseif $row.$field eq 'Subtotal'} report-label{/if}">
                         {if array_key_exists($fieldLink, $row) && $row.$fieldLink}
-                            <a title="{$row.$fieldHover|escape}" href="{$row.$fieldLink}"  {if array_key_exists($fieldClass, $row)} class="{$row.$fieldClass}"{/if}>
+                            <a href="{$row.$fieldLink}"
+                               {if array_key_exists($fieldHover, $row)}title="{$row.$fieldHover|escape}"{/if}
+                               {if array_key_exists($fieldClass, $row)}class="{$row.$fieldClass}"{/if}
+                            >
                         {/if}
 
                         {if is_array($row.$field)}