diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2006-03-22 17:30:20 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-03-22 17:30:20 +0000 |
commit | 1e2ed1bc9f8128d4d252c6761b50216d0b01998e (patch) | |
tree | a0f77cfde33df5debf9cc45a1444a8df5135f0fb /phpBB/mcp.php | |
parent | 02239880a55f38828b1f4151fc2d2a658312b98e (diff) | |
download | forums-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/mcp.php')
-rw-r--r-- | phpBB/mcp.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/mcp.php b/phpBB/mcp.php index 5f10ec23bf..1556a24d6d 100644 --- a/phpBB/mcp.php +++ b/phpBB/mcp.php @@ -508,7 +508,7 @@ function check_ids(&$ids, $table, $sql_id, $acl_list = false) $sql = "SELECT forum_id FROM $table WHERE $sql_id = {$ids[0]}"; $result = $db->sql_query($sql); - $forum_id = (int) $db->sql_fetchfield('forum_id', 0, $result); + $forum_id = (int) $db->sql_fetchfield('forum_id'); $db->sql_freeresult($result); if (!$forum_id) @@ -531,7 +531,7 @@ function check_ids(&$ids, $table, $sql_id, $acl_list = false) } $result = $db->sql_query_limit($sql, 1); - $forum_id = (int) $db->sql_fetchfield('forum_id', 0, $result); + $forum_id = (int) $db->sql_fetchfield('forum_id'); $db->sql_freeresult($result); } |