Skip to content

Commit

Permalink
Fix for missing content type
Browse files Browse the repository at this point in the history
  • Loading branch information
cykod committed Oct 5, 2010
1 parent 3e0e331 commit 0ab468f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/helpers/page_helper.rb
Expand Up @@ -225,8 +225,8 @@ def content_node_links(objects)
return nil unless objects
objects.map do |obj|
nd = ContentNode.find_by_id(obj)
if nd
admin_url = nd.admin_url.symbolize_keys
if nd && admin_url = nd.admin_url
admin_url.symbolize_keys!
if myself.has_content_permission?(admin_url.delete(:permission))
name = admin_url.delete(:title) || nd.node_type.underscore.titleize
url = url_for(admin_url) + "?return_to_site=true"
Expand Down

0 comments on commit 0ab468f

Please sign in to comment.