This commit is contained in:
appchecker 2016-02-02 20:19:23 +03:00
parent d8bf0ab327
commit 8e40b41460

View File

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