Skip to content

Check if array elements exist before using them - #23645

Merged
rullzer merged 1 commit into
masterfrom
fix/fe/s3/isset_first
Oct 27, 2020
Merged

Check if array elements exist before using them#23645
rullzer merged 1 commit into
masterfrom
fix/fe/s3/isset_first

Conversation

@rullzer

Copy link
Copy Markdown
Member

It seems that in some recent upgrade here. Not always the entries we
expect are returned. So we should first check if they exist. As to not
spam the log.

Signed-off-by: Roeland Jago Douma roeland@famdouma.nl

@MorrisJobkeMorrisJobke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code makes sense 👍

@MorrisJobke

Copy link
Copy Markdown
Member

I amended your commit, because there was one additional space behind the if statement.

@kesselb

Copy link
Copy Markdown
Contributor

Looks similar to #23591 🤔

Comment threadapps/files_external/lib/Lib/Storage/AmazonS3.php
@rullzer
rullzerforce-pushed the fix/fe/s3/isset_first branch from 3b26178 to 47c60a1CompareOctober 24, 2020 08:13
It seems that in some recent upgrade here. Not always the entries we
expect are returned. So we should first check if they exist. As to not
spam the log.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
@MorrisJobke

Copy link
Copy Markdown
Member

I amended your commit, because there was one additional space behind the if statement.

Did it again, because you overwrote it 😝

@rullzer
rullzer requested a review from kesselbOctober 26, 2020 11:46
@rullzer

Copy link
Copy Markdown
MemberAuthor

/backport to stable20

@rullzer

Copy link
Copy Markdown
MemberAuthor

/backport to stable19

@rullzer

Copy link
Copy Markdown
MemberAuthor

/backport to stable18

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@rullzer@MorrisJobke@kesselb@nickvergessen