[ticket/11885] Use conditional in update_data()

PHPBB3-11885