summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-03-29 12:23:15 +0400
committerAndrew Dolgov <[email protected]>2011-03-29 12:23:15 +0400
commit30a2fe5a2aa0d12ad1d36e751db9d18c4fa2ff7e (patch)
tree85f5e6dcb3477223c7b0591cf1bb49246df8f4a9 /functions.php
parent74b046a1c9d10e5c937361c89c3ae790925b76d7 (diff)
update_rss_feed: fix proper typecasting of mark_unread_on_update/update_on_checksum_change
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/functions.php b/functions.php
index ec449f274..d1e7addb0 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'");