Minor php notice fix

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65916 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Josh Kosmala 2008-11-14 02:23:26 +00:00
parent f5a5002f14
commit 987edc9522

View File

@ -565,7 +565,7 @@ JS;
public function revert($urlParams, $form) {
$id = $_REQUEST['ID'];
$obj = DataObject::get_by_id("SiteTree", $id);
if($record && !$record->canEdit()) return Security::permissionFailure($this);
if(isset($record) && $record && !$record->canEdit()) return Security::permissionFailure($this);
$obj->doRevertToLive();