Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Fix keyBy with null
Browse files Browse the repository at this point in the history
  • Loading branch information
arrilot committed Dec 12, 2018
1 parent f34c1c8 commit 69eddaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Queries/BaseQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ public function stopQuery()
protected function addItemToResultsUsingKeyBy(&$results, BaseBitrixModel $object)
{
$item = $object->fields;
if (!isset($item[$this->keyBy])) {
if (!array_key_exists($this->keyBy, $item)) {
throw new LogicException("Field {$this->keyBy} is not found in object");
}

Expand Down

0 comments on commit 69eddaa

Please sign in to comment.