Modified SQL statement slightly.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1592 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
1a7549ace3
commit
b4d248bdcb
|
@ -23,7 +23,7 @@ if ( !canView( 'Events' ) )
|
|||
$view = "error";
|
||||
return;
|
||||
}
|
||||
$result = mysql_query( "select E.*,M.Name as MonitorName,M.Width,M.Height,M.DefaultScale from Events as E, Monitors as M where E.Id = '$eid' and E.MonitorId = M.Id" );
|
||||
$result = mysql_query( "select E.*,M.Name as MonitorName,M.Width,M.Height,M.DefaultScale from Events as E inner join Monitors as M where E.Id = '$eid' and E.MonitorId = M.Id" );
|
||||
if ( !$result )
|
||||
die( mysql_error() );
|
||||
$event = mysql_fetch_assoc( $result );
|
||||
|
|
Loading…
Reference in New Issue