Ensure that max_events is set.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1354 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
afe2d218e3
commit
58a205b78c
|
@ -26,6 +26,11 @@ if ( !canView( 'Events' ) )
|
||||||
|
|
||||||
parseSort();
|
parseSort();
|
||||||
|
|
||||||
|
if ( !$max_events )
|
||||||
|
{
|
||||||
|
$max_events = MAX_EVENTS;
|
||||||
|
}
|
||||||
|
|
||||||
if ( ZM_WEB_REFRESH_METHOD == "http" )
|
if ( ZM_WEB_REFRESH_METHOD == "http" )
|
||||||
header("Refresh: ".ZM_WEB_REFRESH_EVENTS."; URL=$PHP_SELF?view=watchevents&mid=$mid&max_events=".MAX_EVENTS );
|
header("Refresh: ".ZM_WEB_REFRESH_EVENTS."; URL=$PHP_SELF?view=watchevents&mid=$mid&max_events=".MAX_EVENTS );
|
||||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
|
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
|
||||||
|
|
Loading…
Reference in New Issue