summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2022-02-01 13:17:11 +0300
committerAndrew Dolgov <[email protected]>2022-02-01 13:17:11 +0300
commit4e35c44add23791d6dc886bf71b325948e55b61a (patch)
tree017207d89f2080d09b45464e8835a10094930b22
parent6077175c57b4f793880467d4c32d7391f4b0a038 (diff)
parentb59bde7b45727724e5f711e1d7f88a6cabbbf5e4 (diff)
Merge branch 'master' of git.tt-rss.org:fox/tt-rss
-rwxr-xr-xclasses/feeds.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/classes/feeds.php b/classes/feeds.php
index 2c37d659a..cc78b498c 100755
--- a/classes/feeds.php
+++ b/classes/feeds.php
@@ -195,7 +195,11 @@ class Feeds extends Handler_Protected {
// frontend doesn't expect pdo returning booleans as strings on mysql
if (Config::get(Config::DB_TYPE) == "mysql") {
foreach (["unread", "marked", "published"] as $k) {
- $line[$k] = $line[$k] === "1";
+ if (is_integer($line[$k])) {
+ $line[$k] = $line[$k] === 1;
+ } else {
+ $line[$k] = $line[$k] === "1";
+ }
}
}