diff options
| author | 2025-01-10 08:13:09 +0100 | |
|---|---|---|
| committer | 2025-01-10 08:13:09 +0100 | |
| commit | 5368f38753a3e655ed3d7d7dfc7af2cc22de7980 (patch) | |
| tree | decb975aa750660cea965bf61399df2335493b9d /app/Controllers/entryController.php | |
| parent | 3280ec617f8081bf0d5349e441ae564a42fdc500 (diff) | |
Reduce undeeded use of elvis operator ?: (#7204)
Diffstat (limited to 'app/Controllers/entryController.php')
| -rw-r--r-- | app/Controllers/entryController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Controllers/entryController.php b/app/Controllers/entryController.php index be553267b..4c88225c0 100644 --- a/app/Controllers/entryController.php +++ b/app/Controllers/entryController.php @@ -114,7 +114,7 @@ class FreshRSS_entry_Controller extends FreshRSS_ActionController { // so the next unread tag calculation is deferred by passing next_get = 'a' instead of the current get ID. if ($next_get === 'a' && $is_read) { $tagDAO = FreshRSS_Factory::createTagDao(); - $tagsList = $tagDAO->listTags() ?: []; + $tagsList = $tagDAO->listTags(); $found_tag = false; foreach ($tagsList as $tag) { if ($found_tag) { @@ -174,7 +174,7 @@ class FreshRSS_entry_Controller extends FreshRSS_ActionController { } $entryDAO->markRead($ids, $is_read); $tagDAO = FreshRSS_Factory::createTagDao(); - $tagsForEntries = $tagDAO->getTagsForEntries($ids) ?: []; + $tagsForEntries = $tagDAO->getTagsForEntries($ids) ?? []; $tags = []; foreach ($tagsForEntries as $line) { $tags['t_' . $line['id_tag']][] = (string)$line['id_entry']; |
