mirror of
https://github.com/silverstripe/silverstripe-sqlite3
synced 2024-10-22 17:05:37 +02:00
Merge remote-tracking branch 'origin/2.1' into 2
This commit is contained in:
commit
0e6aa26f55
@ -300,6 +300,8 @@ class SQLite3Database extends Database
|
||||
$alternativeFileFilter = "",
|
||||
$invertedMatch = false
|
||||
) {
|
||||
$start = (int)$start;
|
||||
$pageLength = (int)$pageLength;
|
||||
$keywords = $this->escapeString(str_replace(array('*', '+', '-', '"', '\''), '', $keywords));
|
||||
$htmlEntityKeywords = htmlentities(utf8_decode($keywords));
|
||||
|
||||
@ -326,7 +328,7 @@ class SQLite3Database extends Database
|
||||
$extraFilters[$fileClass] .= " AND ShowInSearch <> 0";
|
||||
}
|
||||
|
||||
$limit = $start . ", " . (int) $pageLength;
|
||||
$limit = $start . ", " . $pageLength;
|
||||
|
||||
$notMatch = $invertedMatch ? "NOT " : "";
|
||||
if ($keywords) {
|
||||
|
Loading…
Reference in New Issue
Block a user