diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2009-02-22 18:06:05 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2009-02-22 18:06:05 +0000 |
commit | 84f795e9fbd172924280593d575bf4587c9b40e5 (patch) | |
tree | 45ac9db0e053f78f8c240370ad5dc5f8f34cb730 /phpBB/modules/ucp/ucp_zebra.php | |
parent | 95b69cfa7f66e721cea3f8a5d62ad1cb2b822cfc (diff) | |
download | forums-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/ucp/ucp_zebra.php')
-rw-r--r-- | phpBB/modules/ucp/ucp_zebra.php | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/phpBB/modules/ucp/ucp_zebra.php b/phpBB/modules/ucp/ucp_zebra.php index aa698eecae..1ac6888ca4 100644 --- a/phpBB/modules/ucp/ucp_zebra.php +++ b/phpBB/modules/ucp/ucp_zebra.php @@ -62,10 +62,10 @@ class ucp_zebra FROM ' . ZEBRA_TABLE . ' z, ' . USERS_TABLE . ' u WHERE z.user_id = ' . phpbb::$user->data['user_id'] . ' AND u.user_id = z.zebra_id'; - $result = $db->sql_query($sql); + $result = phpbb::$db->sql_query($sql); $friends = $foes = array(); - while ($row = $db->sql_fetchrow($result)) + while ($row = phpbb::$db->sql_fetchrow($result)) { if ($row['friend']) { @@ -76,7 +76,7 @@ class ucp_zebra $foes[] = utf8_clean_string($row['username']); } } - $db->sql_freeresult($result); + phpbb::$db->sql_freeresult($result); // remove friends from the username array $n = sizeof($data['add']); @@ -111,12 +111,12 @@ class ucp_zebra { $sql = 'SELECT user_id, user_type FROM ' . USERS_TABLE . ' - WHERE ' . $db->sql_in_set('username_clean', $data['add']) . ' + WHERE ' . phpbb::$db->sql_in_set('username_clean', $data['add']) . ' AND user_type <> ' . phpbb::USER_INACTIVE; - $result = $db->sql_query($sql); + $result = phpbb::$db->sql_query($sql); $user_id_ary = array(); - while ($row = $db->sql_fetchrow($result)) + while ($row = phpbb::$db->sql_fetchrow($result)) { if ($row['user_id'] != ANONYMOUS && $row['user_type'] != phpbb::USER_IGNORE) { @@ -127,7 +127,7 @@ class ucp_zebra $error[] = phpbb::$user->lang['NOT_ADDED_' . $l_mode . '_ANONYMOUS']; } } - $db->sql_freeresult($result); + phpbb::$db->sql_freeresult($result); if (sizeof($user_id_ary)) { @@ -169,7 +169,7 @@ class ucp_zebra ); } - $db->sql_multi_insert(ZEBRA_TABLE, $sql_ary); + phpbb::$db->sql_multi_insert(ZEBRA_TABLE, $sql_ary); $updated = true; } @@ -188,8 +188,8 @@ class ucp_zebra $sql = 'DELETE FROM ' . ZEBRA_TABLE . ' WHERE user_id = ' . phpbb::$user->data['user_id'] . ' - AND ' . $db->sql_in_set('zebra_id', $data['usernames']); - $db->sql_query($sql); + AND ' . phpbb::$db->sql_in_set('zebra_id', $data['usernames']); + phpbb::$db->sql_query($sql); $updated = true; } @@ -224,14 +224,14 @@ class ucp_zebra AND $sql_and AND u.user_id = z.zebra_id ORDER BY u.username_clean ASC"; - $result = $db->sql_query($sql); + $result = phpbb::$db->sql_query($sql); $s_username_options = ''; - while ($row = $db->sql_fetchrow($result)) + while ($row = phpbb::$db->sql_fetchrow($result)) { $s_username_options .= '<option value="' . $row['zebra_id'] . '">' . $row['username'] . '</option>'; } - $db->sql_freeresult($result); + phpbb::$db->sql_freeresult($result); $template->assign_vars(array( 'L_TITLE' => phpbb::$user->lang['UCP_ZEBRA_' . $l_mode], |