[ticket/12482] Fixed undefined variable: data.

https://tracker.phpbb.com/browse/PHPBB3-12482