1 (edited by ekvastra 2019-10-24 06:36:18)

Topic: PHP fix in header.php

We should check

array_key_exists('HTTP_USER_AGENT',$_SERVER)

Before using the value of $_SERVER['HTTP_USER_AGENT']

I had to redo this manually when I upgraded to 4.7.5L and 4.7.6L

It would be nice if this can be incorporated in the code!

Re: PHP fix in header.php

Hi there,

Thanks for reporting this. You are right, the PHP manual clearly states that there is no guarantee that the variable $_SERVER['HTTP_USER_AGENT'] is provided by every web server, so before using it, the existence must be checked. This will be fixed in the next LuxCal version.

We are happy to have knowledgeable calendar users in India!

Roel

Re: PHP fix in header.php

Thanks for the note, your product is amazing!

Jyoti