Skip to content
Snippets Groups Projects
Commit 60066258 authored by Kristof De Jaeger's avatar Kristof De Jaeger
Browse files

Issue #3419558: Fix notice in explode in microsub client

parent b694c6d1
No related branches found
No related tags found
No related merge requests found
Pipeline #103434 failed
......@@ -729,10 +729,13 @@ class MicrosubClient implements MicrosubClientInterface {
$response = ['items' => []];
foreach (explode("\n", \Drupal::config('indieweb_microsub.settings')->get('microsub_aggregated_feeds')) as $u) {
$u = trim($u);
if (!empty($u)) {
$this->aggregated_feeds[] = $u;
$aggregated_feeds = \Drupal::config('indieweb_microsub.settings')->get('microsub_aggregated_feeds');
if (!empty($aggregated_feeds)) {
foreach (explode("\n", $aggregated_feeds) as $u) {
$u = trim($u);
if (!empty($u)) {
$this->aggregated_feeds[] = $u;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment