From adeb3ea5eca174682f54f0ed9f620a445e01e8b9 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Thu, 9 Jul 2009 05:41:42 +0000 Subject: [PATCH] BUGFIX If a page revision has no author, don't completely break the CMS when trying to view that revision git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@81463 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/CMSMain.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/CMSMain.php b/code/CMSMain.php index e6697fc5..3fb695f5 100644 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -773,9 +773,9 @@ JS; PR_MEDIUM, 'Version number is a linked string, created is a relative time (e.g. 2 days ago), by a specific author' ), - "ID/$version\" title=\"" . $versionAuthor->Title . "\">$version", + "ID/$version\" title=\"" . ($versionAuthor ? $versionAuthor->Title : '') . "\">$version", $record->obj('LastEdited')->Ago(), - $versionAuthor->Title + ($versionAuthor ? $versionAuthor->Title : '') ) . '

' ),