Fix PHP error

see #228