[ticket/12964] Correct use of undefined $row variable.

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