Hi,
Thanks for the report.
Please try the following:
in index.php, search for this text:
- Code: Select all
if (isset($_GET['month'])) {
$BAW_CURR['month'] = $_GET['month'];
} else {
$BAW_CURR['month'] = date('m');
}
right after it, please insert
- Code: Select all
$BAW_CURR['dateset'] = false;
if ($BAW_CURR['year'] != date('Y') or $BAW_CURR['month'] != date('m')) {
$BAW_CURR['dateset'] = true;
}
then in core/display.inc.php search for this text:
- Code: Select all
if ($BAW_CURR['month'] == $current_month) { // if we have the current month, get some data from the last month
$daydiff = abs($current_day - $daysofmonth); // calculate how many days are missing
}
and then change it to this here:
- Code: Select all
if ($BAW_CURR['month'] == $current_month && !$BAW_CURR['dateset']) { // if we have the current month, get some data from the last month
$daydiff = abs($current_day - $daysofmonth); // calculate how many days are missing
}
hope this fixes it!