Replace == with empty?

This commit is contained in:
techmetx11 2023-01-15 16:26:51 +01:00 committed by Samantaz Fox
parent 8eca5b270e
commit 4ac263f1df
No known key found for this signature in database
GPG key ID: F42821059186176E

View file

@ -181,7 +181,7 @@ we're going to need to do it here in order to allow for translations.
<% end %> <% end %>
</p> </p>
<% if video.license %> <% if video.license %>
<% if video.license == "" %> <% if video.license.empty? %>
<p id="license"><%= translate(locale, "License: ") %><%= translate(locale, "Standard YouTube license") %></p> <p id="license"><%= translate(locale, "License: ") %><%= translate(locale, "Standard YouTube license") %></p>
<% else %> <% else %>
<p id="license"><%= translate(locale, "License: ") %><%= video.license %></p> <p id="license"><%= translate(locale, "License: ") %><%= video.license %></p>