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:
stan 2011-02-06 15:28:49 +00:00
parent 173de6debf
commit 1027b1c75b
1 changed files with 2 additions and 1 deletions

View File

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