Prevented memory exhaustion in timeline view for very long events
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@3277 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
173de6debf
commit
1027b1c75b
|
@ -408,7 +408,8 @@ foreach( dbFetchAll( $eventsSql ) as $event )
|
|||
else
|
||||
{
|
||||
$framesSql = "select FrameId,Delta,unix_timestamp(TimeStamp) as TimeT,Score from Frames where EventId = '".$event['Id']."' and Score > 0";
|
||||
foreach( dbFetchAll( $framesSql ) as $frame )
|
||||
$result = dbQuery( $framesSql );
|
||||
while( $frame = dbFetchNext( $result ) )
|
||||
{
|
||||
if ( $frame['Score'] == 0 )
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue