Merge pull request #1385 from AppChecker/3

Fix typo
This commit is contained in:
Damian Mooyman 2016-02-03 09:58:04 +13:00
commit 4c7a240726

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