[FIX] Sitemap non-object error
Posted: Tue Apr 19, 2011 4:13 pm
This fix resolves the error report
Find:
Replace with:
Open: includes/classes/class.sitemap.root.phpNotice: Trying to get property of non-object in /home/xxx/public_html/xxx/includes/classes/class.sitemap.root.php on line 14
Find:
Code: Select all
$html .= '<ul class="' . $options->rootClassName . '">';
Replace with:
Code: Select all
$html .= '<ul class="' . (is_object($options) ? $options->rootClassName : '') . '">';