Dashboard if no year is present use current Year

This commit is contained in:
johnny@pittpc.com 2021-01-20 13:10:09 -05:00
parent 9933acee8f
commit 7e819ded6a
1 changed files with 3 additions and 0 deletions

View File

@ -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');
}
?>
<option <?php if($year == $payment_year){ ?> selected <?php } ?> > <?php echo $payment_year; ?></option>