samdark/sitemap

Trying to get property 'short_code' of non-object

rochdi80tn opened this issue · 1 comments

Seems that when a NavItem langugae is deleted, the $navItem->lang object is null. So accessing the short_code attributes gives an error.

Sorry.. missed your module with https://github.com/cebe/luya-module-sitemap that actually uses yours..