Skip to content

Commit

Permalink
Silence a backtrace: don't try to render an item if we don't have a n…
Browse files Browse the repository at this point in the history
…ame for it.

Such items mostly are locally installed plugins which will be added later anyway.
  • Loading branch information
mherger committed Jun 30, 2021
1 parent fe728a1 commit 2cf8826
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Slim/Plugin/MyApps/Plugin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ sub _mysbFeed {
my $savedApps = $prefs->client($client)->get('apps');

foreach my $app (values %$savedApps) {
next if !$app->{title};

push @{$feed->{'items'}}, {
image => Slim::Networking::SqueezeNetwork->url($app->{'icon'}),
items => [1],
Expand Down

0 comments on commit 2cf8826

Please sign in to comment.