From: Andrew Dolgov Date: Tue, 29 Mar 2011 08:23:15 +0000 (+0400) Subject: update_rss_feed: fix proper typecasting of mark_unread_on_update/update_on_checksum_c... X-Git-Tag: 1.5.3~95 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=30a2fe5a2aa0d12ad1d36e751db9d18c4fa2ff7e;p=tt-rss.git update_rss_feed: fix proper typecasting of mark_unread_on_update/update_on_checksum_change --- 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'");