aboutsummaryrefslogtreecommitdiffstats
path: root/lib/WWW/FairViewer/Utils.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/WWW/FairViewer/Utils.pm')
-rw-r--r--lib/WWW/FairViewer/Utils.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/WWW/FairViewer/Utils.pm b/lib/WWW/FairViewer/Utils.pm
index 83c4512..bd300b9 100644
--- a/lib/WWW/FairViewer/Utils.pm
+++ b/lib/WWW/FairViewer/Utils.pm
@@ -501,6 +501,10 @@ sub get_description {
$desc = HTML::Entities::decode_entities($desc);
$desc =~ s/^\s+//;
+ if (not $desc =~ /\S/) {
+ $desc = $info->{description} // '';
+ }
+
($desc =~ /\S/) ? $desc : 'No description available...';
}