pluginhost: load_data: check schema last

This commit is contained in:
Andrew Dolgov 2021-01-15 08:35:05 +03:00
parent 3d32a5f755
commit ee4b7bebe8
1 changed files with 1 additions and 1 deletions

View File

@ -356,7 +356,7 @@ class PluginHost {
} }
private function load_data() { private function load_data() {
if (get_schema_version() > 100 && $this->owner_uid && !$this->data_loaded) { if ($this->owner_uid && !$this->data_loaded && get_schema_version() > 100) {
$sth = $this->pdo->prepare("SELECT name, content FROM ttrss_plugin_storage $sth = $this->pdo->prepare("SELECT name, content FROM ttrss_plugin_storage
WHERE owner_uid = ?"); WHERE owner_uid = ?");
$sth->execute([$this->owner_uid]); $sth->execute([$this->owner_uid]);