1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-06 05:07:41 +02:00

fix(helpers): fix issue in collection helper with limit and offset double check

This commit is contained in:
Awilum
2022-09-02 13:37:58 +03:00
parent ffa27d63ef
commit 61d49a1938

View File

@@ -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']) {