summaryrefslogtreecommitdiff
path: root/classes/pluginhost.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-12-02 11:31:02 +0300
committerAndrew Dolgov <[email protected]>2017-12-02 11:31:02 +0300
commitf8108cc28df586f9fecad4e48052a1cb82891e4a (patch)
tree6241844279e082b31d27b5ed24fd2be88780276c /classes/pluginhost.php
parent8af94f1292bb2b3c1d998f0fdc3ba6befe7ddc2c (diff)
pluginhost: save_data() fixes
Diffstat (limited to 'classes/pluginhost.php')
-rw-r--r--classes/pluginhost.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/classes/pluginhost.php b/classes/pluginhost.php
index bff7c32d0..561a10a41 100644
--- a/classes/pluginhost.php
+++ b/classes/pluginhost.php
@@ -321,19 +321,18 @@ class PluginHost {
if (!isset($this->storage[$plugin]))
$this->storage[$plugin] = array();
- $content = serialize($this->storage[$plugin],
- false);
+ $content = serialize($this->storage[$plugin]);
if ($sth->fetch()) {
$sth = $this->pdo->prepare("UPDATE ttrss_plugin_storage SET content = ?
WHERE owner_uid= ? AND name = ?");
- $sth->execute([$content, $this->owner_uid, $plugin]);
+ $sth->execute([(string)$content, $this->owner_uid, $plugin]);
} else {
$sth = $this->pdo->prepare("INSERT INTO ttrss_plugin_storage
(name,owner_uid,content) VALUES
(?, ?, ?)");
- $sth->execute([$plugin, $this->owner_uid, $content]);
+ $sth->execute([$plugin, $this->owner_uid, (string)$content]);
}
$this->pdo->commit();