diff options
author | rxu <rxu@mail.ru> | 2011-03-14 00:03:31 +0700 |
---|---|---|
committer | rxu <rxu@mail.ru> | 2011-04-10 12:06:07 +0800 |
commit | 804a11074bfb6c8e1fef6f39d1b720468ff56a2f (patch) | |
tree | f5b7eb683f8358d0eae11565fd1dc3585aa73f14 /phpBB/includes | |
parent | 97864d69ee66134f04936137e2357caf99cd9f30 (diff) | |
download | forums-804a11074bfb6c8e1fef6f39d1b720468ff56a2f.tar forums-804a11074bfb6c8e1fef6f39d1b720468ff56a2f.tar.gz forums-804a11074bfb6c8e1fef6f39d1b720468ff56a2f.tar.bz2 forums-804a11074bfb6c8e1fef6f39d1b720468ff56a2f.tar.xz forums-804a11074bfb6c8e1fef6f39d1b720468ff56a2f.zip |
[feature/attachment-management-no-reassignment] Fix minor flaws in the code.
Thanks to Oleg for inspection.
PHPBB3-9721
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/acp/acp_attachments.php | 9 |
1 files changed, 4 insertions, 5 deletions
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) |