Report #50: PM Attachments
This commit is contained in:
@@ -22,6 +22,7 @@ if (!defined('IN_PORTAL'))
|
|||||||
// Just grab all attachment info from database
|
// Just grab all attachment info from database
|
||||||
$sql = 'SELECT *
|
$sql = 'SELECT *
|
||||||
FROM ' . ATTACHMENTS_TABLE . '
|
FROM ' . ATTACHMENTS_TABLE . '
|
||||||
|
WHERE topic_id <> 0
|
||||||
ORDER BY filetime ' . ((!$config['display_order']) ? 'DESC' : 'ASC') . ', post_msg_id ASC';
|
ORDER BY filetime ' . ((!$config['display_order']) ? 'DESC' : 'ASC') . ', post_msg_id ASC';
|
||||||
$result = $db->sql_query_limit($sql, $portal_config['portal_attachments_number']);
|
$result = $db->sql_query_limit($sql, $portal_config['portal_attachments_number']);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user