mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-24 06:11:29 +00:00
ccache: do not override owner_uid fetching for virtual feeds
This commit is contained in:
@@ -5801,9 +5801,11 @@
|
||||
|
||||
if (!$is_cat) {
|
||||
$table = "ttrss_counters_cache";
|
||||
$tmp_result = db_query($link, "SELECT owner_uid FROM ttrss_feeds
|
||||
WHERE id = '$feed_id'");
|
||||
$owner_uid = db_fetch_result($tmp_result, 0, "owner_uid");
|
||||
if ($feed_id > 0) {
|
||||
$tmp_result = db_query($link, "SELECT owner_uid FROM ttrss_feeds
|
||||
WHERE id = '$feed_id'");
|
||||
$owner_uid = db_fetch_result($tmp_result, 0, "owner_uid");
|
||||
}
|
||||
} else {
|
||||
$table = "ttrss_cat_counters_cache";
|
||||
}
|
||||
@@ -5835,7 +5837,7 @@
|
||||
|
||||
if (!is_numeric($feed_id)) return;
|
||||
|
||||
if (!$is_cat) {
|
||||
if (!$is_cat && $feed_id > 0) {
|
||||
$tmp_result = db_query($link, "SELECT owner_uid FROM ttrss_feeds
|
||||
WHERE id = '$feed_id'");
|
||||
$owner_uid = db_fetch_result($tmp_result, 0, "owner_uid");
|
||||
|
||||
Reference in New Issue
Block a user