瀏覽代碼

Fixed new month not being used for different year.

pull/24/head
Teknikode 6 年之前
父節點
當前提交
50451af0cb
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. 3
    3
      transparency/main.php

+ 3
- 3
transparency/main.php 查看文件

@@ -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…
取消
儲存