Corrected undefined index warnings.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2613 e3e1d417-86f3-4887-817a-d78f3d33393f
pull/27/merge
stan 2008-08-03 15:04:44 +00:00
parent 106882c161
commit bb2f87a6f0
1 changed files with 2 additions and 2 deletions

View File

@ -269,7 +269,7 @@ function collectData()
$sql .= " order by ".dbEscape($_REQUEST['sort']);
if ( !empty($entitySpec['limit']) )
$limit = $entitySpec['limit'];
elseif ( $_REQUEST['count'] )
elseif ( !empty($_REQUEST['count']) )
$limit = dbEscape($_REQUEST['count']);
if ( !empty( $limit ) )
$sql .= " limit ".$limit;
@ -290,7 +290,7 @@ function collectData()
foreach ( $postFuncs as $element=>$func )
$sqlData[$element] = eval( 'return( '.$func.'( $sqlData ) );' );
$data[] = $sqlData;
if ( ++$count >= $limit )
if ( isset($limi) && ++$count >= $limit )
break;
}
}