Thank you to Nigel Jewell for the changes. I tested them on PHP 7.4 and PHP 8.0, on mythtv master as well as mythtv v31. The changes have been committed to master. If nobody has any issues I will merge them into fixes/31. Peter