Fix PHP warnings in the admin backend