From: Steve Sutton Date: Thu, 21 Feb 2019 21:35:26 +0000 (-0500) Subject: php notices X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=f1190037c097bac9741d6d94b7cb2c91156c2ccb;p=WP-Plugins%2Fglm-member-db-billing.git php notices Getting rid of php notices. --- diff --git a/setup/help.php b/setup/help.php index 2615692..3e54e64 100644 --- a/setup/help.php +++ b/setup/help.php @@ -157,7 +157,7 @@ add_action( 'current_screen', array( 'id' => 'glm-member-db-billing-help-'. $glmAction . '-' . $sub['name'], 'title' => __( $sub['title'] ), - 'content' => $fileContents, + 'content' => '', 'callback' => 'loadHelpFile', 'extra' => $glmAction . '-' . $sub['name'], ) diff --git a/views/admin/billing/invoicing.html b/views/admin/billing/invoicing.html index ca17fcf..a8f2bdd 100644 --- a/views/admin/billing/invoicing.html +++ b/views/admin/billing/invoicing.html @@ -80,18 +80,20 @@ Balance Due - {foreach $accounts as $t} - - - - {$t.member_name} - - - {$t.account_number} - {$t.payment_type} - {$t.balance_due|string_format:"%.2f"} - - {/foreach} + {if isset( $accounts ) && !empty( $accounts )} + {foreach $accounts as $t} + + + + {$t.member_name} + + + {$t.account_number} + {$t.payment_type} + {$t.balance_due|string_format:"%.2f"} + + {/foreach} + {/if} {* Paging *}