Helioviewer-Project / helioviewer.org

Main web application for solar data visualization
Other
18 stars 15 forks source link

Undefined index: HTTP_USER_AGENT #430

Closed dgarciabriseno closed 1 year ago

dgarciabriseno commented 1 year ago

[11-Jan-2023 22:30:35 UTC] PHP Notice: Undefined index: HTTP_USER_AGENT in /var/www/helioviewer.org/index.php on line 150 [11-Jan-2023 22:30:35 UTC] PHP Notice: Undefined index: HTTP_USER_AGENT in /var/www/helioviewer.org/index.php on line 1892

dgarciabriseno commented 1 year ago

@btaylor-sesda This is due to the mobile checks https://github.com/Helioviewer-Project/helioviewer.org/blob/fa9cd1374a530595536c9b5b97a63df5aff1f95d/index.php#L150

and

https://github.com/Helioviewer-Project/helioviewer.org/blob/fa9cd1374a530595536c9b5b97a63df5aff1f95d/index.php#L1892

can you add a check that it's set first?

btaylor-sesda commented 1 year ago

I added an isset() to the block