mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-06 14:35:56 +02:00
Merge branch '3.3.x'
This commit is contained in:
commit
07caac9832
@ -1299,7 +1299,7 @@ class acp_attachments
|
|||||||
*/
|
*/
|
||||||
public function get_attachment_stats($limit = '')
|
public function get_attachment_stats($limit = '')
|
||||||
{
|
{
|
||||||
$sql = 'SELECT COUNT(a.attach_id) AS num_files, SUM(a.filesize) AS upload_dir_size
|
$sql = 'SELECT COUNT(a.attach_id) AS num_files, SUM(' . $this->db->cast_expr_to_bigint('a.filesize') . ') AS upload_dir_size
|
||||||
FROM ' . ATTACHMENTS_TABLE . " a
|
FROM ' . ATTACHMENTS_TABLE . " a
|
||||||
WHERE a.is_orphan = 0
|
WHERE a.is_orphan = 0
|
||||||
$limit";
|
$limit";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user