Skip to content

Commit

Permalink
Revert "Fix sum with no results (#18685)" (#18719)
Browse files Browse the repository at this point in the history
This reverts commit 4c909d6.
  • Loading branch information
taylorotwell authored Apr 7, 2017
1 parent 4c909d6 commit 9dd6158
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Illuminate/Database/Query/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -1690,9 +1690,7 @@ public function max($column)
*/
public function sum($column)
{
$result = $this->aggregate(__FUNCTION__, [$column]);

return $result ?: 0;
return $this->aggregate(__FUNCTION__, [$column]);
}

/**
Expand Down

0 comments on commit 9dd6158

Please sign in to comment.