mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-07 17:27:16 +02:00
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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user