mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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
This commit is contained in:
parent
ed70de49b8
commit
adeb3ea5ec
@ -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'
|
||||
),
|
||||
"<a href=\"admin/getversion/$record->ID/$version\" title=\"" . $versionAuthor->Title . "\">$version</a>",
|
||||
"<a href=\"admin/getversion/$record->ID/$version\" title=\"" . ($versionAuthor ? $versionAuthor->Title : '') . "\">$version</a>",
|
||||
$record->obj('LastEdited')->Ago(),
|
||||
$versionAuthor->Title
|
||||
($versionAuthor ? $versionAuthor->Title : '')
|
||||
) .
|
||||
'</p>'
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user