From e764dec48d0d24dc94902a62635a3d42f8570b57 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Thu, 4 Feb 2010 04:30:33 +0000 Subject: [PATCH] MINOR: Fixed TableListField tests that don't set $_REQUEST['url'] (from r97127) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@98153 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/TableListField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forms/TableListField.php b/forms/TableListField.php index 2802125c9..dbe073095 100755 --- a/forms/TableListField.php +++ b/forms/TableListField.php @@ -444,7 +444,7 @@ JS $dataQuery = $this->getQuery(); // we don't limit when doing certain actions T - $methodName = array_pop(explode('/', $_REQUEST['url'])); + $methodName = isset($_REQUEST['url']) ? array_pop(explode('/', $_REQUEST['url'])) : null; if(!$methodName || !in_array($methodName,array('printall','export'))) { $dataQuery->limit(array( 'limit' => $SQL_limit,