Skip to content

Commit

Permalink
Merge pull request #138 from kivudesign/version_boss
Browse files Browse the repository at this point in the history
[FIX] ORM Select: try to format data from empty result
  • Loading branch information
bim-g authored Sep 17, 2023
2 parents bd40bd4 + 6cbfbe3 commit 01c3bb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/Orm/DBSelect.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public function offset(int $offset): DBSelect
public function result(): array
{
$this->build();
return (! isset($this->result['exception']) && count($this->include_object)>0) ? $this->formatData($this->result) : $this->result;
return (! isset($this->result['exception']) && count($this->include_object)>0 && count($this->result)>0) ? $this->formatData($this->result) : $this->result;
}

/**
Expand Down

0 comments on commit 01c3bb1

Please sign in to comment.