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

Commit

Permalink
Merge branch 'master' of https://github.com/arrilot/bitrix-models
Browse files Browse the repository at this point in the history
  • Loading branch information
arrilot committed Dec 20, 2018
2 parents eb4629b + 69eddaa commit b41bcf8
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 b41bcf8

Please sign in to comment.