Jake B.
Well-known member
I'm extending \XF\Template\Templater and have extended the function
Is there any reason $this->getStyle() would ever be null in a default XenForo install, or is this something that an add-on (ours or otherwise) would be causing somewhere?
getDefaultAvatarStyling
, and I have a style property for UI.X to use the material color palette instead of generating the random color like XenForo does by default, and for some reason on a couple of installs people are getting an error saying that $this->getStyle()
is NULL coming from this chunk:
PHP:
if (!$options->th_materialAvatars_uix && !$this->getStyle()->getProperty('uix_materialAvatars')) {
return parent::getDefaultAvatarStyling($username);
}
Is there any reason $this->getStyle() would ever be null in a default XenForo install, or is this something that an add-on (ours or otherwise) would be causing somewhere?