Skip to content

Commit

Permalink
Ignore non-numeric page args
Browse files Browse the repository at this point in the history
Passing these causes notices, and is an error on newer PHP versions.
  • Loading branch information
zerocrates committed Aug 10, 2023
1 parent c9f84a8 commit 2f59615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/libraries/Omeka/Db/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ public function applySorting($select, $sortField, $sortDir)
*/
public function applyPagination($select, $limit, $page = null)
{
if ($page) {
if ($page && is_numeric($page)) {
$select->limitPage($page, $limit);
} else {
$select->limit($limit);
Expand Down

0 comments on commit 2f59615

Please sign in to comment.