From 804a11074bfb6c8e1fef6f39d1b720468ff56a2f Mon Sep 17 00:00:00 2001 From: rxu Date: Mon, 14 Mar 2011 00:03:31 +0700 Subject: [feature/attachment-management-no-reassignment] Fix minor flaws in the code. Thanks to Oleg for inspection. PHPBB3-9721 --- phpBB/includes/acp/acp_attachments.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'phpBB/includes') diff --git a/phpBB/includes/acp/acp_attachments.php b/phpBB/includes/acp/acp_attachments.php index 7d796adf03..b926f0c771 100644 --- a/phpBB/includes/acp/acp_attachments.php +++ b/phpBB/includes/acp/acp_attachments.php @@ -1137,9 +1137,9 @@ class acp_attachments FROM ' . ATTACHMENTS_TABLE . ' a LEFT JOIN ' . USERS_TABLE . ' u ON (u.user_id = a.poster_id) LEFT JOIN ' . TOPICS_TABLE . " t ON (a.topic_id = t.topic_id) - WHERE a.is_orphan = 0 - $limit_filetime - ORDER BY $sql_sort_order"; + WHERE a.is_orphan = 0 + $limit_filetime + ORDER BY $sql_sort_order"; $result = $db->sql_query_limit($sql, $sql_limit, $sql_start); $i = ($store_reverse) ? $sql_limit - 1 : 0; @@ -1161,8 +1161,7 @@ class acp_attachments 'S_SORT_DIR' => $s_sort_dir) ); - // Grab extensions - $extensions = array(); + // Grab extensions information $extensions = $cache->obtain_attach_extensions(true); for ($i = 0, $end = sizeof($attachments_list); $i < $end; ++$i) -- cgit v1.2.1