]> git.wh0rd.org Git - tt-rss.git/commitdiff
do not fail on uknown prefkeys while updating feeds
authorAndrew Dolgov <fox@madoka.spb.ru>
Wed, 16 Aug 2006 08:41:30 +0000 (09:41 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Wed, 16 Aug 2006 08:41:30 +0000 (09:41 +0100)
functions.php

index 95b4db2dd2f668bb58a83f5ec87d06ffc1541e6e..9bb9e67e57cc5d9093eac71704696e9ce1bddd96 100644 (file)
 
                        $owner_uid = db_fetch_result($result, 0, "owner_uid");
 
-                       if (get_pref($link, 'ENABLE_FEED_ICONS', $owner_uid)) { 
+                       if (get_pref($link, 'ENABLE_FEED_ICONS', $owner_uid, false)) {  
                                check_feed_favicon($feed_url, $feed, $link);
                        }
 
                                        // check for user post link to main table
 
                                        // do we allow duplicate posts with same GUID in different feeds?
-                                       if (get_pref($link, "ALLOW_DUPLICATE_POSTS", $owner_uid)) {
+                                       if (get_pref($link, "ALLOW_DUPLICATE_POSTS", $owner_uid, false)) {
                                                $dupcheck_qpart = "AND feed_id = '$feed'";
                                        } else { 
                                                $dupcheck_qpart = "";
                                        
                                        $post_needs_update = false;
 
-                                       if (get_pref($link, "UPDATE_POST_ON_CHECKSUM_CHANGE", $owner_uid) &&
+                                       if (get_pref($link, "UPDATE_POST_ON_CHECKSUM_CHANGE", $owner_uid, false) &&
                                                ($content_hash != $orig_content_hash)) {
                                                $post_needs_update = true;
                                        }
                                                                num_comments = '$num_comments'
                                                        WHERE id = '$ref_id'");
 
-                                               if (get_pref($link, "MARK_UNREAD_ON_UPDATE", $owner_uid)) {
+                                               if (get_pref($link, "MARK_UNREAD_ON_UPDATE", $owner_uid, false)) {
                                                        db_query($link, "UPDATE ttrss_user_entries 
                                                                SET last_read = null, unread = true WHERE ref_id = '$ref_id'");
                                                } else {