]> git.pld-linux.org Git - packages/zoneminder.git/blob - zoneminder-build.patch
- fix for zmfilter
[packages/zoneminder.git] / zoneminder-build.patch
1 --- ZoneMinder-1.24.2/src/zm_utils.cpp.org      2009-07-12 19:45:34.387460575 +0200
2 +++ ZoneMinder-1.24.2/src/zm_utils.cpp  2009-07-12 19:46:00.454902859 +0200
3 @@ -21,6 +21,7 @@
4  #include "zm_utils.h"
5  
6  #include <stdarg.h>
7 +#include <stdio.h>
8  
9  const std::string stringtf( const char *format, ... )
10  {
11 --- ZoneMinder-1.24.2/scripts/zmfilter.pl.in~   2009-06-08 11:16:04.000000000 +0200
12 +++ ZoneMinder-1.24.2/scripts/zmfilter.pl.in    2011-01-20 11:03:41.575750088 +0100
13 @@ -270,7 +270,7 @@
14          my $sql = "select E.Id,E.MonitorId,M.Name as MonitorName,M.DefaultRate,M.DefaultScale,E.Name,E.Cause,E.Notes,E.StartTime,unix_timestamp(E.StartTime) as Time,E.Length,E.Frames,E.AlarmFrames,E.TotScore,E.AvgScore,E.MaxScore,E.Archived,E.Videoed,E.Uploaded,E.Emailed,E.Messaged,E.Executed from Events as E inner join Monitors as M on M.Id = E.MonitorId where not isnull(E.EndTime)";
15             $db_filter->{Sql} = '';
16  
17 -        if ( @{$filter_expr->{terms}} )
18 +        if ( $filter_expr->{terms} and @{$filter_expr->{terms}} )
19          {
20              for ( my $i = 0; $i < @{$filter_expr->{terms}}; $i++ )
21              {
This page took 0.086652 seconds and 4 git commands to generate.