summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--application/service/files.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/service/files.php b/application/service/files.php
index 962939c87..59a096d1b 100644
--- a/application/service/files.php
+++ b/application/service/files.php
@@ -27,7 +27,7 @@ class files {
}
$total_size = $CI->db->query("
- SELECT sum(filesize) sum
+ SELECT coalesce(sum(filesize), 0) sum
FROM (
SELECT DISTINCT hash, filesize
FROM `".$CI->db->dbprefix."files`