aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2009-09-17 13:44:50 +0000
committerAndreas Fischer <bantu@phpbb.com>2009-09-17 13:44:50 +0000
commit13e8898563365d93525f08e1b4103c94b2114d48 (patch)
treee3b014cd9d9ed1e6c4237f7b458547e767412e19 /phpBB/includes
parent223b9ed0d69ab9482dbf0125afb73ef6c569aa16 (diff)
downloadforums-13e8898563365d93525f08e1b4103c94b2114d48.tar
forums-13e8898563365d93525f08e1b4103c94b2114d48.tar.gz
forums-13e8898563365d93525f08e1b4103c94b2114d48.tar.bz2
forums-13e8898563365d93525f08e1b4103c94b2114d48.tar.xz
forums-13e8898563365d93525f08e1b4103c94b2114d48.zip
Return integers when get_forum_list() is supposed to only return IDs.
This will save us some calls to the sql escape function when used with sql_in_set(). Authorised by: acydburn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10159 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions_admin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php
index e49b4a8ccd..c0db64dbfb 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -254,7 +254,7 @@ function get_forum_list($acl_list = 'f_list', $id_only = true, $postable_only =
if ($acl_list == '' || ($acl_list != '' && $auth->acl_gets($acl_list, $row['forum_id'])))
{
- $rowset[] = ($id_only) ? $row['forum_id'] : $row;
+ $rowset[] = ($id_only) ? (int) $row['forum_id'] : $row;
}
}