From 6aaec39afa1a5a60caf94814da22a79b3ac96a9f Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Tue, 22 Apr 2008 02:17:32 +0000 Subject: [PATCH] MINOR: Fixed some php notices git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.2.2@53181 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/TableListField.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forms/TableListField.php b/forms/TableListField.php index f2fe4b613..cbcd69a6d 100755 --- a/forms/TableListField.php +++ b/forms/TableListField.php @@ -295,7 +295,7 @@ JS function sourceItems() { $SQL_limit = ($this->pageSize) ? "{$this->pageSize}" : "0"; - if(is_numeric($_REQUEST['ctf'][$this->Name()]['start'])) { + if(isset($_REQUEST['ctf'][$this->Name()]['start']) && is_numeric($_REQUEST['ctf'][$this->Name()]['start'])) { $SQL_start = (isset($_REQUEST['ctf'][$this->Name()]['start'])) ? intval($_REQUEST['ctf'][$this->Name()]['start']) : "0"; } if(isset($this->customSourceItems)) { @@ -311,7 +311,7 @@ JS $dataQuery = $this->getQuery(); // we don't limit when doing certain actions - if(!in_array($_REQUEST['methodName'],array('printall','export'))) { + if(!isset($_REQUEST['methodName']) || !in_array($_REQUEST['methodName'],array('printall','export'))) { $dataQuery->limit = $SQL_limit; if(isset($SQL_start)) { $dataQuery->limit .= " OFFSET {$SQL_start}";