Skip to content

unset emailto variable causes php error - #422

Merged
somethingwithproof merged 2 commits into
Cacti:developfrom
xmacan:fix_empty_email
Nov 12, 2026
Merged

somethingwithproof merged 2 commits into
Cacti:developfrom
xmacan:fix_empty_email

Conversation

@xmacan

@xmacan xmacan commented Nov 12, 2026

Copy link
Copy Markdown
Member

2026-11-10 23:07:26 - CMDPHP MAILER ERROR Backtrace: (/plugins/mactrack/poller_mactrack.php[294]:collect_mactrack_data(), /plugins/mactrack/poller_mactrack.php[1096]:mactrack_process_mac_auth_report(), /plugins/mactrack/poller_mactrack.php[1214]:mactrack_mail(), /plugins/mactrack/lib/mactrack_functions.php[4292]:mailer(), /lib/functions.php[5943]:cacti_debug_backtrace())

TheWitness
TheWitness previously approved these changes Nov 12, 2026
Add unit coverage for the new guard in mactrack_mail() that skips
delivery and logs when no report email address is configured, bringing
patch coverage for the change to %.

Co-authored-by: Copilot <223629+Copilot@users.noreply.github.com>
@sonarqubecloud

Copy link
Copy Markdown

@somethingwithproof
somethingwithproof merged commit de4f05f into Cacti:develop Nov 12, 2026
9 checks passed
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