summaryrefslogtreecommitdiffstats
path: root/lib/Db/ItemMapper.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Db/ItemMapper.php')
-rw-r--r--lib/Db/ItemMapper.php4
1 files changed, 2 insertions, 2 deletions
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);
}