aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/modules/mcp/mcp_notes.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2009-02-22 18:06:05 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2009-02-22 18:06:05 +0000
commit84f795e9fbd172924280593d575bf4587c9b40e5 (patch)
tree45ac9db0e053f78f8c240370ad5dc5f8f34cb730 /phpBB/modules/mcp/mcp_notes.php
parent95b69cfa7f66e721cea3f8a5d62ad1cb2b822cfc (diff)
downloadforums-84f795e9fbd172924280593d575bf4587c9b40e5.tar
forums-84f795e9fbd172924280593d575bf4587c9b40e5.tar.gz
forums-84f795e9fbd172924280593d575bf4587c9b40e5.tar.bz2
forums-84f795e9fbd172924280593d575bf4587c9b40e5.tar.xz
forums-84f795e9fbd172924280593d575bf4587c9b40e5.zip
$db-> to phpbb::$db->
git-svn-id: file:///svn/phpbb/trunk@9336 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/modules/mcp/mcp_notes.php')
-rw-r--r--phpBB/modules/mcp/mcp_notes.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/phpBB/modules/mcp/mcp_notes.php b/phpBB/modules/mcp/mcp_notes.php
index ae5c975ccf..44dcec52c6 100644
--- a/phpBB/modules/mcp/mcp_notes.php
+++ b/phpBB/modules/mcp/mcp_notes.php
@@ -78,14 +78,14 @@ class mcp_notes
add_form_key('mcp_notes');
- $sql_where = ($user_id) ? "user_id = $user_id" : "username_clean = '" . $db->sql_escape(utf8_clean_string($username)) . "'";
+ $sql_where = ($user_id) ? "user_id = $user_id" : "username_clean = '" . phpbb::$db->sql_escape(utf8_clean_string($username)) . "'";
$sql = 'SELECT *
FROM ' . USERS_TABLE . "
WHERE $sql_where";
- $result = $db->sql_query($sql);
- $userrow = $db->sql_fetchrow($result);
- $db->sql_freeresult($result);
+ $result = phpbb::$db->sql_query($sql);
+ $userrow = phpbb::$db->sql_fetchrow($result);
+ phpbb::$db->sql_freeresult($result);
if (!$userrow)
{
@@ -119,7 +119,7 @@ class mcp_notes
{
$sql_in[] = $mark;
}
- $where_sql = ' AND ' . $db->sql_in_set('log_id', $sql_in);
+ $where_sql = ' AND ' . phpbb::$db->sql_in_set('log_id', $sql_in);
unset($sql_in);
}
@@ -131,7 +131,7 @@ class mcp_notes
WHERE log_type = ' . LOG_USERS . "
AND reportee_id = $user_id
$where_sql";
- $db->sql_query($sql);
+ phpbb::$db->sql_query($sql);
add_log('admin', 'LOG_CLEAR_USER', $userrow['username']);