From fdf4fa454d5f485f193130b24a79ea836c3f0278 Mon Sep 17 00:00:00 2001 From: anoy Date: Thu, 14 Jan 2021 10:19:06 +0100 Subject: fix TypeError in ItemMapper Signed-off-by: anoy --- lib/Db/ItemMapper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/Db/ItemMapper.php b/lib/Db/ItemMapper.php index 9b0c04d1d..2b07a570f 100644 --- a/lib/Db/ItemMapper.php +++ b/lib/Db/ItemMapper.php @@ -281,7 +281,7 @@ class ItemMapper extends Mapper $this->getOperator($oldestFirst) . ' ? '; $params[] = $offset; } - $sql = $this->makeSelectQuery($sql, $oldestFirst, $search); + $sql = $this->makeSelectQuery($sql, $oldestFirst); return $this->findEntitiesIgnoringNegativeLimit($sql, $params, $limit); } @@ -308,7 +308,7 @@ class ItemMapper extends Mapper $sql .= 'AND `items`.`id` ' . $this->getOperator($oldestFirst) . ' ? '; $params[] = $offset; } - $sql = $this->makeSelectQuery($sql, $oldestFirst, $search); + $sql = $this->makeSelectQuery($sql, $oldestFirst); return $this->findEntitiesIgnoringNegativeLimit($sql, $params, $limit); } -- cgit v1.2.3