Fix php 7.2 notice
authoreileen <emcnaughton@wikimedia.org>
Tue, 20 Nov 2018 03:33:02 +0000 (16:33 +1300)
committereileen <emcnaughton@wikimedia.org>
Tue, 20 Nov 2018 03:33:02 +0000 (16:33 +1300)
templates/CRM/Contribute/Form/ContributionView.tpl

index bc281ac35e410fc18f8accf25590730ac9ee6cfc..6e966db510581942e5e7ff21ee52176a5fe776a6 100644 (file)
   {/if}
 </table>
 
-{if count($softContributions)} {* We show soft credit name with PCP section if contribution is linked to a PCP. *}
+{if $softContributions && count($softContributions)} {* We show soft credit name with PCP section if contribution is linked to a PCP. *}
   <div class="crm-accordion-wrapper crm-soft-credit-pane">
     <div class="crm-accordion-header">
       {ts}Soft Credit{/ts}