diff --git a/classes/feeds.php b/classes/feeds.php
index 2c37d659a3a82bdc580a2e25503f4b60da55a0b9..cc78b498c3cfbdcca107a142d93085ffbb461f79 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";
+						}
 					}
 				}