diff --git a/lib/Skeleton/Object/Get.php b/lib/Skeleton/Object/Get.php index 428f743..e3d2083 100644 --- a/lib/Skeleton/Object/Get.php +++ b/lib/Skeleton/Object/Get.php @@ -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); } /**