From: Andreas F. <ba...@ph...> - 2009-09-17 14:03:47
|
Author: bantu Date: Thu Sep 17 14:44:50 2009 New Revision: 10159 Log: 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 Modified: branches/phpBB-3_0_0/phpBB/includes/functions_admin.php Modified: branches/phpBB-3_0_0/phpBB/includes/functions_admin.php ============================================================================== *** branches/phpBB-3_0_0/phpBB/includes/functions_admin.php (original) --- branches/phpBB-3_0_0/phpBB/includes/functions_admin.php Thu Sep 17 14:44:50 2009 *************** *** 254,260 **** if ($acl_list == '' || ($acl_list != '' && $auth->acl_gets($acl_list, $row['forum_id']))) { ! $rowset[] = ($id_only) ? $row['forum_id'] : $row; } } --- 254,260 ---- if ($acl_list == '' || ($acl_list != '' && $auth->acl_gets($acl_list, $row['forum_id']))) { ! $rowset[] = ($id_only) ? (int) $row['forum_id'] : $row; } } |