From 8e40b414601cb6fc737b6f5f68c975c75454d145 Mon Sep 17 00:00:00 2001 From: appchecker Date: Tue, 2 Feb 2016 20:19:23 +0300 Subject: [PATCH] Fix typo --- code/controllers/CMSPageHistoryController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);