fix bug stated in http://tracker.phpbb.com/browse/PHPBB3-11723

http://tracker.phpbb.com/browse/PHPBB3-11723