mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-08-17 11:37:22 +02:00
do not fail on uknown prefkeys while updating feeds
This commit is contained in:
parent
22cc88c037
commit
8d0ec6fd74
@ -312,7 +312,7 @@
|
|||||||
|
|
||||||
$owner_uid = db_fetch_result($result, 0, "owner_uid");
|
$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_feed_favicon($feed_url, $feed, $link);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -605,7 +605,7 @@
|
|||||||
// check for user post link to main table
|
// check for user post link to main table
|
||||||
|
|
||||||
// do we allow duplicate posts with same GUID in different feeds?
|
// 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'";
|
$dupcheck_qpart = "AND feed_id = '$feed'";
|
||||||
} else {
|
} else {
|
||||||
$dupcheck_qpart = "";
|
$dupcheck_qpart = "";
|
||||||
@ -653,7 +653,7 @@
|
|||||||
|
|
||||||
$post_needs_update = false;
|
$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)) {
|
($content_hash != $orig_content_hash)) {
|
||||||
$post_needs_update = true;
|
$post_needs_update = true;
|
||||||
}
|
}
|
||||||
@ -683,7 +683,7 @@
|
|||||||
num_comments = '$num_comments'
|
num_comments = '$num_comments'
|
||||||
WHERE id = '$ref_id'");
|
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
|
db_query($link, "UPDATE ttrss_user_entries
|
||||||
SET last_read = null, unread = true WHERE ref_id = '$ref_id'");
|
SET last_read = null, unread = true WHERE ref_id = '$ref_id'");
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user