[ticket/7707] Fix undefined variable: perm_from

PHPBB3-7707