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.

- Before Fix
- Screen Shot 2020-01-02 at 7.27.06 AM.png (77.47 KiB) Viewed 5643 times
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>
Edit that line so that is becomes this:
Code: Select all
<strong>'.number_format(convertT($data['annualMaxTmax']),1).'</strong>
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.

- After fix
- Screen Shot 2020-01-02 at 7.34.18 AM.png (78.67 KiB) Viewed 5643 times
Hope this is useful to some of you!