Skip to content

Commit

Permalink
Revert "Fix sum with no results (#18685)"
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 0d0812b
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 0d0812b

Please sign in to comment.