From c7ad4ad2d43b15f0b3ed60c70c16e0867fc5a4cb Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 11 Apr 2019 13:38:47 +0300 Subject: [PATCH] import_export: use default ts_lang if user one is unset --- plugins/import_export/init.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/import_export/init.php b/plugins/import_export/init.php index 3b225e659..714574ab4 100755 --- a/plugins/import_export/init.php +++ b/plugins/import_export/init.php @@ -404,6 +404,9 @@ class Import_Export extends Plugin implements IHandler { $ts_lang = get_pref('DEFAULT_SEARCH_LANGUAGE', $owner_uid); // TODO: maybe use per-feed setting if available? + if (!$ts_lang) + $ts_lang = 'simple'; + $sth = $this->pdo->prepare("UPDATE ttrss_entries SET tsvector_combined = to_tsvector(:ts_lang, :ts_content) WHERE id = :id");