mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 15:35:55 +00:00
format headlines list: normalize booleans for pdo mysql
This commit is contained in:
@@ -242,6 +242,13 @@ class Feeds extends Handler_Protected {
|
|||||||
|
|
||||||
$id = $line["id"];
|
$id = $line["id"];
|
||||||
|
|
||||||
|
// frontend doesn't expect pdo returning booleans as strings on mysql
|
||||||
|
if (DB_TYPE == "mysql") {
|
||||||
|
foreach (["unread", "marked", "published"] as $k) {
|
||||||
|
$line[$k] = $line[$k] === "1";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// normalize archived feed
|
// normalize archived feed
|
||||||
if ($line['feed_id'] === null) {
|
if ($line['feed_id'] === null) {
|
||||||
$line['feed_id'] = 0;
|
$line['feed_id'] = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user