Skip to content

Commit

Permalink
Default tom array om nyheter inte finns
Browse files Browse the repository at this point in the history
  • Loading branch information
bonny committed May 11, 2024
1 parent 4d64631 commit a90acbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/View/Components/TextTVBox.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ public function __construct() {
*/
public function render(): View|Closure|string {

$latestNews = Setting::get('texttv-last-updated');
$mostRead = Setting::get('texttv-most-read');
$latestNews = Setting::get('texttv-last-updated', []);
$mostRead = Setting::get('texttv-most-read', []);

return view('components.text-tv-box', ['latestNews' => $latestNews, 'mostRead' => $mostRead]);
}
Expand Down

0 comments on commit a90acbd

Please sign in to comment.