From 7e819ded6a34fa5eed875b4df9d16bcf818238cb Mon Sep 17 00:00:00 2001 From: "johnny@pittpc.com" Date: Wed, 20 Jan 2021 13:10:09 -0500 Subject: [PATCH] Dashboard if no year is present use current Year --- dashboard.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dashboard.php b/dashboard.php index ca396923..3b489cbe 100644 --- a/dashboard.php +++ b/dashboard.php @@ -98,6 +98,9 @@ $total_recurring_invoice_amount = $row['total_recurring_invoice_amount']; while($row = mysqli_fetch_array($sql_payment_years)){ $payment_year = $row['all_years']; + if(empty($payment_year)){ + $payment_year = date('Y'); + } ?>