mirror of
https://github.com/owncloud/bookmarks.git
synced 2025-02-19 16:54:27 +01:00
Fix Problems with mysql
This commit is contained in:
parent
ba5e37d36c
commit
7f7b7d1f30
@ -108,11 +108,14 @@ class OC_Bookmarks_Bookmarks{
|
|||||||
$sql .= ' HAVING true ';
|
$sql .= ' HAVING true ';
|
||||||
}
|
}
|
||||||
foreach($filters as $filter) {
|
foreach($filters as $filter) {
|
||||||
$sql .= ' AND lower(`url` || `title` || `description` || `tags` ) LIKE ? ';
|
if($CONFIG_DBTYPE == 'mysql')
|
||||||
|
$sql .= ' AND lower( concat(url,title,description,tags )) like ? ';
|
||||||
|
else
|
||||||
|
$sql .= ' AND lower(url || title || description || tags ) like ? ';
|
||||||
$params[] = '%' . strtolower($filter) . '%';
|
$params[] = '%' . strtolower($filter) . '%';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql .= " ORDER BY ".$sqlSortColumn." DESC ";
|
$sql .= " ORDER BY ".$sqlSortColumn." DESC ";
|
||||||
if($limit == -1 || $limit === false) {
|
if($limit == -1 || $limit === false) {
|
||||||
$limit = null;
|
$limit = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user