Report #50: PM Attachments

This commit is contained in:
Ice
2008-02-02 14:01:49 +00:00
parent 92d87984ee
commit 4c671aae65

View File

@@ -22,6 +22,7 @@ if (!defined('IN_PORTAL'))
// Just grab all attachment info from database
$sql = 'SELECT *
FROM ' . ATTACHMENTS_TABLE . '
WHERE topic_id <> 0
ORDER BY filetime ' . ((!$config['display_order']) ? 'DESC' : 'ASC') . ', post_msg_id ASC';
$result = $db->sql_query_limit($sql, $portal_config['portal_attachments_number']);