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:
@@ -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']) {
|
||||
|
Reference in New Issue
Block a user