]> git.wh0rd.org Git - tt-rss.git/commitdiff
update_rss_feed: fix proper typecasting of mark_unread_on_update/update_on_checksum_c...
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 29 Mar 2011 08:23:15 +0000 (12:23 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 29 Mar 2011 08:23:15 +0000 (12:23 +0400)
functions.php

index ec449f27469a67bc4f9227aa6211ccabdbc2c0db..d1e7addb031daee66d1c27a6900b40c86202d08e 100644 (file)
                $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'");