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

getSuperUsers() of the link check task reads $rules['core.admin']->getData() ?? []. If the root asset has no core.admin rule, $rules['core.admin'] is undefined; calling getData() on null throws an Error (not an Exception), so the surrounding catch (\Exception $e) does not catch it and the task fails with a fatal error instead of reporting that no Super Users were found.

The rule is now checked with isset() before it is used.

Testing Instructions

Hard to reproduce on a normal site (the root asset always has core.admin for Super Users). Remove core.admin from the rules of the root asset in #__assets on a test site and run a "Weblinks - Check links" task that finds a broken link.

Expected result

The task logs "No Super Users found for email notification."

Actual result

Fatal error: Call to a member function getData() on null.

Documentation Changes Required

None

avatar Hackwar Hackwar - open - 27 Nov 2026

Add a Comment

Login with GitHub to post a comment