From 2abf6949415abbcef98d1af1b1831d83eee2ba91 Mon Sep 17 00:00:00 2001 From: stan Date: Sun, 20 Nov 2005 12:15:25 +0000 Subject: [PATCH] Bug 207 - Fixed unassigned x10_monitor array. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1599 e3e1d417-86f3-4887-817a-d78f3d33393f --- web/zm_actions.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/zm_actions.php b/web/zm_actions.php index 645548b4a..49509b7e1 100644 --- a/web/zm_actions.php +++ b/web/zm_actions.php @@ -1053,7 +1053,10 @@ if ( isset($action) ) $result = mysql_query( "select * from TriggersX10 where MonitorId = '$mid'" ); if ( !$result ) die( mysql_error() ); - $x10_monitor = mysql_fetch_assoc( $result ); + if ( !($x10_monitor = mysql_fetch_assoc( $result )) ) + { + $x10_monitor = array(); + } } } else