diff --git a/code/controller/SilverStripeNavigator.php b/code/controller/SilverStripeNavigator.php index 1c29aaed..030d453c 100644 --- a/code/controller/SilverStripeNavigator.php +++ b/code/controller/SilverStripeNavigator.php @@ -298,9 +298,11 @@ class SilverStripeNavigatorItem_ArchiveLink extends SilverStripeNavigatorItem { } function getMessage() { - $dateObj = Object::create('Datetime'); - $dateObj->setValue($date); - return "
"; + if($date = Versioned::current_archived_date()) { + $dateObj = Object::create('Datetime'); + $dateObj->setValue($date); + return " "; + } } function getLink() {