mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
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:
parent
f5a5002f14
commit
987edc9522
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user