Skip to content

Commit

Permalink
count retruns null on zero
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandor Horvath committed Oct 10, 2019
1 parent e19de50 commit 3de4587
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FoxproDB.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function query(string $query)
*/
public function count()
{
return $this->recordSet->count();
return $this->recordSet->count() > 0 ? $this->recordSet->count() : null;
}

/**
Expand Down

0 comments on commit 3de4587

Please sign in to comment.