summaryrefslogtreecommitdiff
path: root/classes/API.php
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2024-08-04 16:10:12 +0000
committerAndrew Dolgov <fox@fakecake.org>2024-08-04 16:10:12 +0000
commit3496402686224f3db921c91a1b25704ef26310ca (patch)
treecff043e8cbfe87cfff5cad9df42949609058ce65 /classes/API.php
parent6b521b5ed14dbc11bf9fecb40a2cd0ce541db9a8 (diff)
parent9dd4102c7fe2ddfc67f91ad9034d734a4458cc01 (diff)
Merge branch 'feature/isset-to-null-coalescing-op' into 'master'
Replace basic 'isset()' cases with the null coalescing operator. See merge request tt-rss/tt-rss!51
Diffstat (limited to 'classes/API.php')
-rw-r--r--classes/API.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/API.php b/classes/API.php
index 45820f300..6dbb1f246 100644
--- a/classes/API.php
+++ b/classes/API.php
@@ -817,7 +817,7 @@ class API extends Handler {
$headline_row["labels"] = $labels;
- $headline_row["feed_title"] = isset($line["feed_title"]) ? $line["feed_title"] : $feed_title;
+ $headline_row["feed_title"] = $line["feed_title"] ?? $feed_title;
$headline_row["comments_count"] = (int)$line["num_comments"];
$headline_row["comments_link"] = $line["comments"];