Bug 207 - Fixed unassigned x10_monitor array.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1599 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
e1387afb32
commit
2abf694941
|
@ -1053,7 +1053,10 @@ if ( isset($action) )
|
||||||
$result = mysql_query( "select * from TriggersX10 where MonitorId = '$mid'" );
|
$result = mysql_query( "select * from TriggersX10 where MonitorId = '$mid'" );
|
||||||
if ( !$result )
|
if ( !$result )
|
||||||
die( mysql_error() );
|
die( mysql_error() );
|
||||||
$x10_monitor = mysql_fetch_assoc( $result );
|
if ( !($x10_monitor = mysql_fetch_assoc( $result )) )
|
||||||
|
{
|
||||||
|
$x10_monitor = array();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue