diff --git a/src/Dao/PostDao.php b/src/Dao/PostDao.php index 55aa96a5..8ce8d78b 100644 --- a/src/Dao/PostDao.php +++ b/src/Dao/PostDao.php @@ -44,7 +44,7 @@ class PostDao extends AbstractDao implements ICrudDao public function getTotalFileSize() { $query = $this->pdo->from($this->tableName)->select('SUM(originalFileSize) AS __sum'); - return intval(iterator_to_array($query)[0]['__sum']); + return iterator_to_array($query)[0]['__sum']; } public function findByName($name)