Skip to content

Fix PHP warning: Undefined array key "updateable"#16935

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

Fix PHP warning: Undefined array key "updateable"#16935
Jako wants to merge 1 commit intomodxcms:3.xfrom
Jako:patch-3

Conversation

@Jako
Copy link
Copy Markdown
Contributor

@Jako Jako commented Mar 26, 2026

What does it do?

Initialise the array key updateable before using it.

Why is it needed?

PHP warning: Undefined array key "updateable"

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

smg6511 commented Mar 26, 2026

Hey @Jako - Consider handling this the same way it is done in the process method L40, changing L128 to:

$categoryData = [
    'updateable' => 0
];

...and leave the line you changed as it was before.

Also, let me know if there happens to be a related Issue. Thx!

@Jako
Copy link
Copy Markdown
Contributor Author

Jako commented Mar 26, 2026

You can fix this however you want.

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.

2 participants