mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
commit
4c7a240726
@ -369,7 +369,7 @@ class CMSPageHistoryController extends CMSMain {
|
||||
$fromVersion = $versionID;
|
||||
}
|
||||
|
||||
if(!$toVersion || !$toVersion) return false;
|
||||
if(!$toVersion || !$fromVersion) return false;
|
||||
|
||||
$id = $this->currentPageID();
|
||||
$page = DataObject::get_by_id("SiteTree", $id);
|
||||
|
Loading…
Reference in New Issue
Block a user