mirror of
https://github.com/itflow-org/itflow
synced 2026-03-06 22:04:51 +00:00
Dashboard if no year is present use current Year
This commit is contained in:
@@ -98,6 +98,9 @@ $total_recurring_invoice_amount = $row['total_recurring_invoice_amount'];
|
|||||||
|
|
||||||
while($row = mysqli_fetch_array($sql_payment_years)){
|
while($row = mysqli_fetch_array($sql_payment_years)){
|
||||||
$payment_year = $row['all_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>
|
<option <?php if($year == $payment_year){ ?> selected <?php } ?> > <?php echo $payment_year; ?></option>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user