Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
indieweb
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
indieweb
Commits
60066258
Commit
60066258
authored
1 year ago
by
Kristof De Jaeger
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3419558
: Fix notice in explode in microsub client
parent
b694c6d1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#103434
failed
1 year ago
Stage: build
Stage: validate
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/indieweb_microsub/src/MicrosubClient/MicrosubClient.php
+7
-4
7 additions, 4 deletions
...s/indieweb_microsub/src/MicrosubClient/MicrosubClient.php
with
7 additions
and
4 deletions
modules/indieweb_microsub/src/MicrosubClient/MicrosubClient.php
+
7
−
4
View file @
60066258
...
...
@@ -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
;
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment