Fix PHP variable initialization error for recordings.