Skip to content

Commit

Permalink
explicit null check
Browse files Browse the repository at this point in the history
  • Loading branch information
TomK committed Apr 20, 2016
1 parent d4e6b64 commit 0e3ff55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Assembler/Segments/ClauseAssembler.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function assembleJoinClause(JoinClause $clause)
$segments = [];
$source = $clause->getSource();
$destination = $clause->getDestination();
if($source && $destination)
if($source !== null && $destination !== null)
{
$segments[] = $this->assembleSegment($source)
. ' = ' . $this->assembleSegment($destination);
Expand Down

0 comments on commit 0e3ff55

Please sign in to comment.