Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
27 Nov 2026

Pull Request for Issue # .

  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

This change was created with the help of AI (Claude Code).

Summary of Changes

$recordId = (int) isset($data[$key]) ? $data[$key] : 0; is parsed as ((int) isset($data[$key])) ? $data[$key] : 0, so the cast is applied to the boolean result of isset() and $recordId is the raw, uncast request value. It is changed to isset($data[$key]) ? (int) $data[$key] : 0.

Testing Instructions

Code review. Editing an existing weblink on the frontend works as before.

Expected result

$recordId is an integer.

Actual result

$recordId is the uncast value from $data.

Documentation Changes Required

None

avatar Hackwar Hackwar - open - 27 Nov 2026

Add a Comment

Login with GitHub to post a comment