backend/viewfeed: fix feed checking for validity
This commit is contained in:
parent
be2f5e1a44
commit
81f6deea47
1 changed files with 2 additions and 2 deletions
|
@ -274,13 +274,13 @@
|
||||||
$result = false;
|
$result = false;
|
||||||
|
|
||||||
if ($feed < -10) {
|
if ($feed < -10) {
|
||||||
$label_feed = -10-$feed;
|
$label_feed = -11-$feed;
|
||||||
$result = db_query($link, "SELECT id FROM ttrss_labels2 WHERE
|
$result = db_query($link, "SELECT id FROM ttrss_labels2 WHERE
|
||||||
id = '$label_feed' AND owner_uid = " . $_SESSION['uid']);
|
id = '$label_feed' AND owner_uid = " . $_SESSION['uid']);
|
||||||
} else if (!$cat_view && $feed > 0) {
|
} else if (!$cat_view && $feed > 0) {
|
||||||
$result = db_query($link, "SELECT id FROM ttrss_feeds WHERE
|
$result = db_query($link, "SELECT id FROM ttrss_feeds WHERE
|
||||||
id = '$feed' AND owner_uid = " . $_SESSION['uid']);
|
id = '$feed' AND owner_uid = " . $_SESSION['uid']);
|
||||||
} else if ($cat_view) {
|
} else if ($cat_view && $feed > 0) {
|
||||||
$result = db_query($link, "SELECT id FROM ttrss_feed_categories WHERE
|
$result = db_query($link, "SELECT id FROM ttrss_feed_categories WHERE
|
||||||
id = '$feed' AND owner_uid = " . $_SESSION['uid']);
|
id = '$feed' AND owner_uid = " . $_SESSION['uid']);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue