aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorOliver Schramm <oliver.schramm97@gmail.com>2014-04-04 23:48:14 +0200
committerOliver Schramm <oliver.schramm97@gmail.com>2014-04-04 23:48:14 +0200
commit8f525e1ef5777c1dc77d7eb4d43039c5dd059f88 (patch)
tree682442a622cbcf2ab3e616f9d546f1025138fd49 /phpBB/includes
parent908057301c023a7d5efcd4aed0e8b8d4c793f15b (diff)
downloadforums-8f525e1ef5777c1dc77d7eb4d43039c5dd059f88.tar
forums-8f525e1ef5777c1dc77d7eb4d43039c5dd059f88.tar.gz
forums-8f525e1ef5777c1dc77d7eb4d43039c5dd059f88.tar.bz2
forums-8f525e1ef5777c1dc77d7eb4d43039c5dd059f88.tar.xz
forums-8f525e1ef5777c1dc77d7eb4d43039c5dd059f88.zip
[ticket/7707] Fix undefined variable: perm_from
PHPBB3-7707
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/acp/acp_main.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_main.php b/phpBB/includes/acp/acp_main.php
index 542a8c549b..4512905539 100644
--- a/phpBB/includes/acp/acp_main.php
+++ b/phpBB/includes/acp/acp_main.php
@@ -40,10 +40,12 @@ class acp_main
$user_row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
+ $perm_from = get_username_string('full', $user_row['user_id'], $user_row['username'], $user_row['user_colour']);
+
$template->assign_vars(array(
'S_RESTORE_PERMISSIONS' => true,
'U_RESTORE_PERMISSIONS' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=restore_perm'),
- 'PERM_FROM' => get_username_string('full', $user_row['user_id'], $user_row['username'], $user_row['user_colour']),
+ 'PERM_FROM' => $perm_from,
'L_PERMISSIONS_TRANSFERRED_EXPLAIN' => sprintf($user->lang['PERMISSIONS_TRANSFERRED_EXPLAIN'], $perm_from, append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=restore_perm')),
));