title display fix for NULL category
This commit is contained in:
parent
99ff73f404
commit
019ce9f37f
1 changed files with 8 additions and 6 deletions
14
backend.php
14
backend.php
|
@ -1384,15 +1384,17 @@
|
||||||
$feed_title = "Global search results ($search)";
|
$feed_title = "Global search results ($search)";
|
||||||
} else if ($search && sprintf("%d", $feed) == 0) {
|
} else if ($search && sprintf("%d", $feed) == 0) {
|
||||||
$feed_title = "Feed search results ($search, $feed)";
|
$feed_title = "Feed search results ($search, $feed)";
|
||||||
} else if ($feed > 0) {
|
} else if ($feed >= 0) {
|
||||||
|
|
||||||
if ($cat_view) {
|
if ($cat_view) {
|
||||||
|
|
||||||
$result = db_query($link, "SELECT title FROM ttrss_feed_categories
|
|
||||||
WHERE id = '$feed' AND owner_uid = " . $_SESSION["uid"]);
|
|
||||||
|
|
||||||
$feed_title = db_fetch_result($result, 0, "title");
|
|
||||||
|
|
||||||
|
if ($feed != 0) {
|
||||||
|
$result = db_query($link, "SELECT title FROM ttrss_feed_categories
|
||||||
|
WHERE id = '$feed' AND owner_uid = " . $_SESSION["uid"]);
|
||||||
|
$feed_title = db_fetch_result($result, 0, "title");
|
||||||
|
} else {
|
||||||
|
$feed_title = "Uncategorized";
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
$result = db_query($link, "SELECT title,site_url,last_error FROM ttrss_feeds
|
$result = db_query($link, "SELECT title,site_url,last_error FROM ttrss_feeds
|
||||||
|
|
Loading…
Reference in a new issue