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
This commit is contained in:
Sean Harvey 2009-04-23 04:14:20 +00:00 committed by Sam Minnee
parent 74fad6a1d0
commit cd5ed8515d

View File

@ -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();