Removes php warning from error logs