Skip to content

Commit

Permalink
fix getPageDescription to return default page description if details …
Browse files Browse the repository at this point in the history
…does not have description.
  • Loading branch information
wildone committed May 17, 2021
1 parent b21f34e commit 2d58eb5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1607,7 +1607,7 @@ public static String getPageDescription(Page page) {
if (!ResourceUtil.isNonExistingResource(detailsResource)) {
ValueMap vm = detailsResource.getValueMap();
String detailsDescription = vm.get(DETAILS_DESCRIPTION, "");
if (StringUtils.isEmpty(detailsDescription)) {
if (StringUtils.isNotEmpty(detailsDescription)) {
return detailsDescription;
}
}
Expand Down

0 comments on commit 2d58eb5

Please sign in to comment.