Fix - Yearly Report (PDF) showing incorrect Max Temperature
Posted: Thu Jan 02, 2020 12:35 pm
If you look at the Yearly Reports there is an option to generate a PDF version. While this is likely a feature that does not get used often, if you do run it you will notice that the Maximum Temperature shows 0.
To correct this open the file reportYearlyPDF.php (found under the ../pages/station directory) and around line 503 look for this line:
Edit that line so that is becomes this:
The problem is the variable being called was listed incorrectly and needs to be changed to 'annualMaxTmax'. Once that is done and saved to your site the PDF yearly summary will work correctly.
Hope this is useful to some of you!
To correct this open the file reportYearlyPDF.php (found under the ../pages/station directory) and around line 503 look for this line:
Code: Select all
<strong>'.number_format(convertT($data['monthlyMaxTmax']),1).'</strong>Code: Select all
<strong>'.number_format(convertT($data['annualMaxTmax']),1).'</strong>Hope this is useful to some of you!