Skip to content
This repository was archived by the owner on Jun 15, 2024. It is now read-only.

Commit 003ccb7

Browse files
committed
Fix not to compact() undefined variables
1 parent 8f237ee commit 003ccb7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Model/Behavior/LampagerBehavior.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function paginate(Model $model, $conditions, $fields, $order, $limit, $pa
7979
*/
8080
extract($extra, EXTR_SKIP);
8181

82-
return $model->find('lampager', compact(
82+
return $model->find('lampager', compact(array_intersect([
8383
'conditions',
8484
'fields',
8585
'order',
@@ -92,7 +92,7 @@ public function paginate(Model $model, $conditions, $fields, $order, $limit, $pa
9292
'inclusive',
9393
'seekable',
9494
'unseekable',
95-
'cursor'
96-
));
95+
'cursor',
96+
], array_keys(get_defined_vars()))));
9797
}
9898
}

0 commit comments

Comments
 (0)