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/includes/acp/acp_reasons.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/includes/acp/acp_reasons.php')
-rw-r--r-- | phpBB/includes/acp/acp_reasons.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/acp/acp_reasons.php b/phpBB/includes/acp/acp_reasons.php index 8866a762e6..890350f26b 100644 --- a/phpBB/includes/acp/acp_reasons.php +++ b/phpBB/includes/acp/acp_reasons.php @@ -97,7 +97,7 @@ class acp_reasons $sql = 'SELECT MAX(reason_order) as max_reason_order FROM ' . REASONS_TABLE; $result = $db->sql_query($sql); - $max_order = (int) $db->sql_fetchfield('max_reason_order', 0, $result); + $max_order = (int) $db->sql_fetchfield('max_reason_order'); $db->sql_freeresult($result); $sql_ary = array( @@ -191,7 +191,7 @@ class acp_reasons FROM ' . REASONS_TABLE . " WHERE reason_title = 'other'"; $result = $db->sql_query($sql); - $other_reason_id = (int) $db->sql_fetchfield('reason_id', 0, $result); + $other_reason_id = (int) $db->sql_fetchfield('reason_id'); $db->sql_freeresult($result); // Change the reports using this reason to 'other' |