From cd5ed8515d1b0ebd8c67c3c3c89ddc77b7ffe4ec Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Thu, 23 Apr 2009 04:14:20 +0000 Subject: [PATCH] BUGFIX Fixed error if clicking the root of a sitetree in the CMS - affected the AssetAdmin and SecurityAdmin sections git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@75023 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/LeftAndMain.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index 5f7807ee..38856eb4 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -844,7 +844,7 @@ JS; } public function EditForm() { - if(isset($_REQUEST['ID'])) { + if(isset($_REQUEST['ID']) && is_numeric($_REQUEST['ID'])) { $record = DataObject::get_by_id($this->stat('tree_class'), $_REQUEST['ID']); } else { $record = $this->CurrentPage();