mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-16 07:55:57 +00:00
import_export: use default ts_lang if user one is unset
This commit is contained in:
@@ -404,6 +404,9 @@ class Import_Export extends Plugin implements IHandler {
|
|||||||
$ts_lang = get_pref('DEFAULT_SEARCH_LANGUAGE', $owner_uid);
|
$ts_lang = get_pref('DEFAULT_SEARCH_LANGUAGE', $owner_uid);
|
||||||
// TODO: maybe use per-feed setting if available?
|
// TODO: maybe use per-feed setting if available?
|
||||||
|
|
||||||
|
if (!$ts_lang)
|
||||||
|
$ts_lang = 'simple';
|
||||||
|
|
||||||
$sth = $this->pdo->prepare("UPDATE ttrss_entries
|
$sth = $this->pdo->prepare("UPDATE ttrss_entries
|
||||||
SET tsvector_combined = to_tsvector(:ts_lang, :ts_content)
|
SET tsvector_combined = to_tsvector(:ts_lang, :ts_content)
|
||||||
WHERE id = :id");
|
WHERE id = :id");
|
||||||
|
|||||||
Reference in New Issue
Block a user