[ticket/11959] Rename phpbb_gen_string_list() & fix incorrect var name.

PHPBB3-11959