diff --git a/web/zm_actions.php b/web/zm_actions.php index 33f682e7a..498f1f52d 100644 --- a/web/zm_actions.php +++ b/web/zm_actions.php @@ -231,7 +231,14 @@ if ( $action ) if ( $new_section_length != $monitor['SectionLength'] ) $changes[] = "SectionLength = '$new_section_length'"; if ( $new_frame_skip != $monitor['FrameSkip'] ) $changes[] = "FrameSkip = '$new_frame_skip'"; if ( $new_runmode != $monitor['RunMode'] ) $changes[] = "RunMode = '$new_runmode'"; - if ( join(',',$new_triggers) != $monitor['Triggers'] ) $changes[] = "Triggers = '".join(',',$new_triggers)."'"; + if ( $new_triggers ) + { + if ( join(',',$new_triggers) != $monitor['Triggers'] ) $changes[] = "Triggers = '".join(',',$new_triggers)."'"; + } + elseif ( $monitor['Triggers'] ) + { + $changes[] = "Triggers = ''"; + } if ( $new_type != $monitor['Type'] ) $changes[] = "Type = '$new_type'"; break; }