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.
Summary
In
thold_functions.php, the Type 0ALERT > WARNINGelseifblock is only reached when$notifywasfalsein the prior warning block. The$suspend_notifyvariable is only ever set totruewhen$notify && $ra(the reset_ack re-alert suppression condition). Since$notifyisfalsewhen thiselseifpath is entered,$suspend_notifyis alwaysfalsehere.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.