diff --git a/code/controllers/CMSPageHistoryController.php b/code/controllers/CMSPageHistoryController.php index e8a1344b..496399df 100644 --- a/code/controllers/CMSPageHistoryController.php +++ b/code/controllers/CMSPageHistoryController.php @@ -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);