Skip to content

Fix PHP warning: Undefined variable $image#16933

Open
Jako wants to merge 1 commit intomodxcms:3.xfrom
Jako:patch-1
Open

Fix PHP warning: Undefined variable $image#16933
Jako wants to merge 1 commit intomodxcms:3.xfrom
Jako:patch-1

Conversation

@Jako
Copy link
Copy Markdown
Contributor

@Jako Jako commented Mar 26, 2026

What does it do?

Use the null coalescing operator to assign an empty string when $image is not defined

Why is it needed?

PHP warning: Undefined variable $image

@Jako Jako requested review from Mark-H and opengeek as code owners March 26, 2026 07:11
@smg6511
Copy link
Copy Markdown
Collaborator

smg6511 commented Mar 26, 2026

@Jako - Is there an open issue this is related to? If so, just want to identify and close it upon this getting merged in. Thx!

@Jako
Copy link
Copy Markdown
Contributor Author

Jako commented Mar 26, 2026

I don't think so. It just popped up in the logs of one installation that has warnings enabled.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants