Fixed Triggers initialisation problem.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@655 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2003-10-16 09:01:56 +00:00
parent 05683469a2
commit 44cf2fc964
1 changed files with 8 additions and 1 deletions

View File

@ -231,7 +231,14 @@ if ( $action )
if ( $new_section_length != $monitor['SectionLength'] ) $changes[] = "SectionLength = '$new_section_length'"; if ( $new_section_length != $monitor['SectionLength'] ) $changes[] = "SectionLength = '$new_section_length'";
if ( $new_frame_skip != $monitor['FrameSkip'] ) $changes[] = "FrameSkip = '$new_frame_skip'"; if ( $new_frame_skip != $monitor['FrameSkip'] ) $changes[] = "FrameSkip = '$new_frame_skip'";
if ( $new_runmode != $monitor['RunMode'] ) $changes[] = "RunMode = '$new_runmode'"; if ( $new_runmode != $monitor['RunMode'] ) $changes[] = "RunMode = '$new_runmode'";
if ( $new_triggers )
{
if ( join(',',$new_triggers) != $monitor['Triggers'] ) $changes[] = "Triggers = '".join(',',$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'"; if ( $new_type != $monitor['Type'] ) $changes[] = "Type = '$new_type'";
break; break;
} }