summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas <lukas.schwarz@posteo.de>2020-12-07 13:10:00 +0100
committerLukas <lukas.schwarz@posteo.de>2020-12-07 13:10:00 +0100
commit0f66ff50a4e739008bc52f53a9fb20e7baaca0c7 (patch)
tree3df3b0f7b0eb35b0d505ed00cccf8b21e49665d2
parent4184fb3ae78fecb27c50e5ddf8d149ff7cce7467 (diff)
downloadinvidious-0f66ff50a4e739008bc52f53a9fb20e7baaca0c7.tar.gz
invidious-0f66ff50a4e739008bc52f53a9fb20e7baaca0c7.tar.bz2
invidious-0f66ff50a4e739008bc52f53a9fb20e7baaca0c7.zip
Fix #1516 Document is empty
-rw-r--r--src/invidious/views/playlists.ecr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/views/playlists.ecr b/src/invidious/views/playlists.ecr
index 0c48be96..a77d106d 100644
--- a/src/invidious/views/playlists.ecr
+++ b/src/invidious/views/playlists.ecr
@@ -27,7 +27,7 @@
</div>
<div class="h-box">
- <p><span style="white-space:pre-wrap"><%= XML.parse_html(channel.description_html).xpath_node(%q(.//pre)).try &.content %></span></p>
+ <p><span style="white-space:pre-wrap"><%= XML.parse_html(channel.description_html).xpath_node(%q(.//pre)).try &.content if !channel.description_html.empty? %></span></p>
</div>
<div class="h-box">