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:
stan 2005-11-20 12:15:25 +00:00
parent e1387afb32
commit 2abf694941
1 changed files with 4 additions and 1 deletions

View File

@ -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