mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-30 01:21:27 +00:00
initial WIP for php8; bump php version requirement to 7.0
This commit is contained in:
@@ -718,8 +718,8 @@ class API extends Handler {
|
||||
$label_cache = json_decode($label_cache, true);
|
||||
|
||||
if ($label_cache) {
|
||||
if ($label_cache["no-labels"] == 1)
|
||||
$labels = array();
|
||||
if (($label_cache["no-labels"] ?? 0) == 1)
|
||||
$labels = [];
|
||||
else
|
||||
$labels = $label_cache;
|
||||
}
|
||||
@@ -762,7 +762,7 @@ class API extends Handler {
|
||||
}
|
||||
|
||||
// unify label output to ease parsing
|
||||
if ($labels["no-labels"] == 1) $labels = array();
|
||||
if (($labels["no-labels"] ?? 0) == 1) $labels = [];
|
||||
|
||||
$headline_row["labels"] = $labels;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user