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:
parent
05683469a2
commit
44cf2fc964
|
@ -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 ( $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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue