From bb2f87a6f00f242a0eabc2f0f525dc71f3d1533a Mon Sep 17 00:00:00 2001 From: stan Date: Sun, 3 Aug 2008 15:04:44 +0000 Subject: [PATCH] Corrected undefined index warnings. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2613 e3e1d417-86f3-4887-817a-d78f3d33393f --- web/ajax/status.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/ajax/status.php b/web/ajax/status.php index 4cb5a72de..00ec126bc 100644 --- a/web/ajax/status.php +++ b/web/ajax/status.php @@ -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; } }