diff --git a/src/Database/QueryBuilder.php b/src/Database/QueryBuilder.php index aeb135c1..45c4c859 100644 --- a/src/Database/QueryBuilder.php +++ b/src/Database/QueryBuilder.php @@ -862,7 +862,7 @@ private function aggregate($aggregate, $column): mixed } // Notice: The result of the next action can be float or int type - return $statement->fetchColumn(); + return $statement->fetchColumn() ?? 0; } /**