Skip to content

Commit

Permalink
attempty to fix empty mapper requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Eichhorn committed Sep 14, 2023
1 parent e08f689 commit 84cf2e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DataStorage/Database/Mapper/ReadMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,9 @@ public function executeGetRaw(Builder $query = null) : array
*/
public function executeGetAll(Builder $query = null) : array
{
$result = $this->executeGet($query);
$result = $this->executeGet($query);

if (\is_object($result) && \stripos(\get_class($result), '\Null') !== false) {
if (\is_object($result) && \stripos(\get_class($result), 'Null') < 2) {
return [];
}

Expand Down

0 comments on commit 84cf2e9

Please sign in to comment.