Browse Source

Fixed new month not being used for different year.

pull/24/head
Teknikode 4 years ago
parent
commit
50451af0cb
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      transparency/main.php

+ 3
- 3
transparency/main.php View File

@@ -232,7 +232,7 @@
$transaction_currency = (isset($transaction['currency'])) ? $transaction['currency'] : "";
$new_month_tag = false;
if ($current_month != date("F",strtotime($transaction_date)))
if ($current_month != date("F",strtotime($transaction_date)) || $current_year != date("Y",strtotime($transaction_date)))
{
$new_month_tag = true;
}
@@ -297,7 +297,7 @@
$transaction_currency = (isset($transaction['currency'])) ? $transaction['currency'] : "";
$new_month_tag = false;
if ($current_month != date("F",strtotime($transaction_date)))
if ($current_month != date("F",strtotime($transaction_date)) || $current_year != date("Y",strtotime($transaction_date)))
{
$new_month_tag = true;
}
@@ -362,7 +362,7 @@
$transaction_currency = (isset($transaction['currency'])) ? $transaction['currency'] : "";
$new_month_tag = false;
if ($current_month != date("F",strtotime($transaction_date)))
if ($current_month != date("F",strtotime($transaction_date)) || $current_year != date("Y",strtotime($transaction_date)))
{
$new_month_tag = true;
}

Loading…
Cancel
Save