aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_user.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-03-22 17:30:20 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-03-22 17:30:20 +0000
commit1e2ed1bc9f8128d4d252c6761b50216d0b01998e (patch)
treea0f77cfde33df5debf9cc45a1444a8df5135f0fb /phpBB/includes/functions_user.php
parent02239880a55f38828b1f4151fc2d2a658312b98e (diff)
downloadforums-1e2ed1bc9f8128d4d252c6761b50216d0b01998e.tar
forums-1e2ed1bc9f8128d4d252c6761b50216d0b01998e.tar.gz
forums-1e2ed1bc9f8128d4d252c6761b50216d0b01998e.tar.bz2
forums-1e2ed1bc9f8128d4d252c6761b50216d0b01998e.tar.xz
forums-1e2ed1bc9f8128d4d252c6761b50216d0b01998e.zip
adjusting sql_freeresult a bit as well as our error handler (it now prints out if it is because of DEBUG_EXTRA being defined - which is not enabled within the betas/rc's and stable releases).
git-svn-id: file:///svn/phpbb/trunk@5699 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r--phpBB/includes/functions_user.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php
index dad4d5b254..c36a57c4d0 100644
--- a/phpBB/includes/functions_user.php
+++ b/phpBB/includes/functions_user.php
@@ -280,7 +280,7 @@ function user_active_flip($user_id, $user_type, $user_actkey = false, $username
FROM ' . USERS_TABLE . "
WHERE user_id = $user_id";
$result = $db->sql_query($sql);
- $username = $db->sql_fetchfield('username', 0, $result);
+ $username = (string) $db->sql_fetchfield('username');
$db->sql_freeresult($result);
}
@@ -1245,7 +1245,7 @@ function group_delete($group_id, $group_name = false)
FROM ' . GROUPS_TABLE . "
WHERE group_id = $group_id";
$result = $db->sql_query($sql);
- $group_name = $db->sql_fetchfield('group_name', 0, $result);
+ $group_name = (string) $db->sql_fetchfield('group_name');
$db->sql_freeresult($result);
}
@@ -1518,7 +1518,7 @@ function group_user_del($group_id, $user_id_ary = false, $username_ary = false,
FROM ' . GROUPS_TABLE . "
WHERE group_id = $group_id";
$result = $db->sql_query($sql);
- $group_name = $db->sql_fetchfield('group_name', 0, $result);
+ $group_name = (string) $db->sql_fetchfield('group_name');
$db->sql_freeresult($result);
}
@@ -1582,7 +1582,7 @@ function group_user_attributes($action, $group_id, $user_id_ary = false, $userna
FROM ' . GROUPS_TABLE . "
WHERE group_id = $group_id";
$result = $db->sql_query($sql);
- $group_name = $db->sql_fetchfield('group_name', 0, $result);
+ $group_name = (string) $db->sql_fetchfield('group_name');
$db->sql_freeresult($result);
}