math-GH / be_piwikcharts

Extension for Open Source Content Management System "Contao": Displays an overview about figures of Piwik-Installation
https://contao.org/de/extension-list/fileview/be_piwikcharts.html
2 stars 2 forks source link

Fix PHP warning #5

Closed fritzmg closed 3 years ago

fritzmg commented 3 years ago

This PR fixes the following PHP warning:

Warning: Use of undefined constant DEMO - assumed 'DEMO' (this will throw an Error in a future version of PHP)

Otherwise the debug mode cannot be used in the Contao back end (if warnings are not otherwise ignored). This also makes the code more compatible towards PHP 8.0.

math-GH commented 3 years ago

Thanks. I fixed it too, but forgot to push it. Now it is fixed twice (your PR is better than my fix). Thanks!