fix bug for missing site

This commit is contained in:
Kyle Drake 2024-09-04 14:26:36 -05:00
parent 81ae359ec0
commit 1e59bab1eb

View file

@ -25,7 +25,7 @@
<% end %> <% end %>
<% if events.empty? %> <% if events.empty? %>
<% if current_site && site.owned_by?(parent_site) %> <% if current_site && defined?(site) && site.owned_by?(parent_site) %>
<p> <p>
No feed news yet, you should <a href="/dashboard">update your site</a>! No feed news yet, you should <a href="/dashboard">update your site</a>!
</p> </p>