aboutsummaryrefslogtreecommitdiff
path: root/include
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 /include
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 'include')
-rw-r--r--include/colors.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/colors.php b/include/colors.php
index 64e24f8f1..35b84b9de 100644
--- a/include/colors.php
+++ b/include/colors.php
@@ -156,10 +156,7 @@ function _resolve_htmlcolor(string $color): string {
$color = strtolower($color);
- if (isset($htmlcolors[$color]))
- return $htmlcolors[$color];
- else
- return $color;
+ return $htmlcolors[$color] ?? $color;
}
/**