[RSS Feed/News] User custom titles with falsy values don't render

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
If you set a custom title to a falsy value (such as 0), it will fail to render.

Affected functions:
  • XF\Entity\User::setupApiResultData
    PHP:

    $result->user_title = $this->custom_title ?: $this->app()->templater()->getDefaultUserTitleForUser($this);
  • XF\Job\UserAction::applyInternalUserChange
    PHP:

    if ($customTitle = $this->getActionValue('custom_title'))
  • XF\Template\Templater::fnUserTitle
    PHP:

    Code:
    $customTitle = $user->custom_title;
    if ($customTitle)
    {...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom