aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/modules/mcp/mcp_ban.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/modules/mcp/mcp_ban.php')
-rw-r--r--phpBB/modules/mcp/mcp_ban.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/modules/mcp/mcp_ban.php b/phpBB/modules/mcp/mcp_ban.php
index b9f6c3e634..0a0452ccf9 100644
--- a/phpBB/modules/mcp/mcp_ban.php
+++ b/phpBB/modules/mcp/mcp_ban.php
@@ -163,22 +163,22 @@ class mcp_ban
$sql = 'SELECT username, user_email, user_ip
FROM ' . USERS_TABLE . '
WHERE user_id = ' . $user_id;
- $result = $db->sql_query($sql);
+ $result = phpbb::$db->sql_query($sql);
switch ($mode)
{
case 'user':
- $pre_fill = (string) $db->sql_fetchfield('username');
+ $pre_fill = (string) phpbb::$db->sql_fetchfield('username');
break;
case 'ip':
- $pre_fill = (string) $db->sql_fetchfield('user_ip');
+ $pre_fill = (string) phpbb::$db->sql_fetchfield('user_ip');
break;
case 'email':
- $pre_fill = (string) $db->sql_fetchfield('user_email');
+ $pre_fill = (string) phpbb::$db->sql_fetchfield('user_email');
break;
}
- $db->sql_freeresult($result);
+ phpbb::$db->sql_freeresult($result);
}
else if ($post_id)
{