From 61d49a193813087a9439a95077e5a53346cd98ef Mon Sep 17 00:00:00 2001 From: Awilum Date: Fri, 2 Sep 2022 13:37:58 +0300 Subject: [PATCH] fix(helpers): fix issue in collection helper with limit and offset double check --- src/flextype/helpers/collection.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flextype/helpers/collection.php b/src/flextype/helpers/collection.php index fea862d3..6bb2f27b 100644 --- a/src/flextype/helpers/collection.php +++ b/src/flextype/helpers/collection.php @@ -140,11 +140,11 @@ if (! function_exists('filterCollection')) { } if (isset($options['offset'])) { - $collection->offset(isset($options['offset']) ? (int) $options['offset'] : 0); + $collection->offset((int) $options['offset']); } if (isset($options['limit'])) { - $collection->limit(isset($options['limit']) ? (int) $options['limit'] : 0); + $collection->limit((int) $options['limit']); } switch ($options['return']) {