From 30a2fe5a2aa0d12ad1d36e751db9d18c4fa2ff7e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 29 Mar 2011 12:23:15 +0400 Subject: [PATCH] update_rss_feed: fix proper typecasting of mark_unread_on_update/update_on_checksum_change --- functions.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/functions.php b/functions.php index ec449f27..d1e7addb 100644 --- a/functions.php +++ b/functions.php @@ -532,8 +532,10 @@ $update_method = db_fetch_result($result, 0, "update_method"); $last_updated = db_fetch_result($result, 0, "last_updated"); $owner_uid = db_fetch_result($result, 0, "owner_uid"); - $mark_unread_on_update = db_fetch_result($result, 0, "mark_unread_on_update"); - $update_on_checksum_change = db_fetch_result($result, 0, "update_on_checksum_change"); + $mark_unread_on_update = sql_bool_to_bool(db_fetch_result($result, + 0, "mark_unread_on_update")); + $update_on_checksum_change = sql_bool_to_bool(db_fetch_result($result, + 0, "update_on_checksum_change")); db_query($link, "UPDATE ttrss_feeds SET last_update_started = NOW() WHERE id = '$feed'"); -- 2.39.5