Skip to content

Commit

Permalink
DimX / fix indexes /
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmytro Kharchenko committed Dec 30, 2024
1 parent e2b648b commit 4e4f87d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Skeleton/Object/Get.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ public static function get_by_ids($ids) {
$result[$id] = self::get_by_id($id);
}

return $result;
// we should reset indexes in case if someone tries to get first element via 0 index
return array_values($result);
}

/**
Expand Down

0 comments on commit 4e4f87d

Please sign in to comment.