I recently upgraded the forum (to its latest version) and found an error that had not occurred before. This is the message:
Quote:
Fatal error: Call to a member function allow_icons() on a non-object in /home/invertpl/public_html/forum/vb/legacy/thread.php on line 184
|
This is what that section looks like:
Code:
// Derived getters
/**
* Get the url for the thread page
*
* @return string
*/
public function get_url()
{
return fetch_seo_url('thread', $this->record);
}
/**
* Does the thread display an icon?
*/
public function has_icon()
{
global $vbulletin;
if (!$this->get_forum()->allow_icons())
{
return false;
}
return ($this->get_field('iconid') OR $this->get_field('pollid') OR $vbulletin->options['showdeficon']);
}
The underlined portion is line 184 ... any ideas what is going on here?
Thanks in advance.