Skip to content

Bug: Type 0 ALERT>WARNING block uses structurally dead $suspend_notify guard #752

Description

@somethingwithproof

Summary

In thold_functions.php, the Type 0 ALERT > WARNING elseif block is only reached when $notify was false in the prior warning block. The $suspend_notify variable is only ever set to true when $notify && $ra (the reset_ack re-alert suppression condition). Since $notify is false when this elseif path is entered, $suspend_notify is always false here.

This makes the guard if (!$suspend_notify && !$maint_dev) at the top of the ALERT>WARNING notification block structurally dead code — the suspend mechanism can never suppress notifications on this path.

Fix

Implementation in #797.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions