aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-11-02 21:29:21 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-11-02 21:29:21 +0100
commit8a410969ddb45ef28589957a0b334e76abf3060c (patch)
treead992c2259c52c181860f32a5cb2e879d97e2ca0
parent29e1f048159b7a580bdf1bab184e928f11d104b4 (diff)
Use bindValue instead of bindParam
https://github.com/FreshRSS/FreshRSS/issues/1349 We should later replace all bindParam by bindValue
-rw-r--r--CHANGELOG.md6
-rw-r--r--app/Models/EntryDAO.php2
-rw-r--r--constants.php2
3 files changed, 8 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 461949128..4be6d74bd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,11 @@
# Changelog
+## 2016-11-02 FreshRSS 1.6.1
+
+* Bug fixing
+ * Fix regression introduced in 1.6.0 when refreshing articles with *Mark updated articles as unread* [#1349](https://github.com/FreshRSS/FreshRSS/issues/1349)
+
+
## 2016-10-30 FreshRSS 1.6.0
* CLI
diff --git a/app/Models/EntryDAO.php b/app/Models/EntryDAO.php
index 4c6a9ea20..58f2c1a79 100644
--- a/app/Models/EntryDAO.php
+++ b/app/Models/EntryDAO.php
@@ -198,7 +198,7 @@ class FreshRSS_EntryDAO extends Minz_ModelPdo implements FreshRSS_Searchable {
$valuesTmp['lastSeen'] = time();
$this->updateEntryPrepared->bindParam(':last_seen', $valuesTmp['lastSeen'], PDO::PARAM_INT);
if ($valuesTmp['is_read'] !== null) {
- $this->updateEntryPrepared->bindParam(':is_read', $valuesTmp['is_read'] ? 1 : 0, PDO::PARAM_INT);
+ $this->updateEntryPrepared->bindValue(':is_read', $valuesTmp['is_read'] ? 1 : 0, PDO::PARAM_INT);
}
$this->updateEntryPrepared->bindParam(':id_feed', $valuesTmp['id_feed'], PDO::PARAM_INT);
$valuesTmp['tags'] = substr($valuesTmp['tags'], 0, 1023);
diff --git a/constants.php b/constants.php
index 08268fdc3..e5ae3ff00 100644
--- a/constants.php
+++ b/constants.php
@@ -1,5 +1,5 @@
<?php
-define('FRESHRSS_VERSION', '1.6.0');
+define('FRESHRSS_VERSION', '1.6.1');
define('FRESHRSS_WEBSITE', 'http://freshrss.org');
define('FRESHRSS_WIKI', 'http://doc.freshrss.org');