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:
stan 2005-02-24 10:42:55 +00:00
parent afe2d218e3
commit 58a205b78c
1 changed files with 5 additions and 0 deletions

View File

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