mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-05 15:16:16 +02:00
[ticket/17051] Fallback to default values for possible undefined user data
PHPBB3-17051
This commit is contained in:
parent
2126738598
commit
2e025be53a
@ -152,7 +152,7 @@ class renderer implements \phpbb\textformatter\renderer_interface
|
||||
* @param \phpbb\user $user
|
||||
* @param \phpbb\config\config $config
|
||||
* @param \phpbb\auth\auth $auth
|
||||
* @return null
|
||||
* @return void
|
||||
*/
|
||||
public function configure_user(\phpbb\user $user, \phpbb\config\config $config, \phpbb\auth\auth $auth)
|
||||
{
|
||||
@ -175,10 +175,10 @@ class renderer implements \phpbb\textformatter\renderer_interface
|
||||
|
||||
// Set this user's style id and other parameters
|
||||
$this->renderer->setParameters(array(
|
||||
'S_IS_BOT' => $user->data['is_bot'],
|
||||
'S_REGISTERED_USER' => $user->data['is_registered'],
|
||||
'S_USER_LOGGED_IN' => ($user->data['user_id'] != ANONYMOUS),
|
||||
'STYLE_ID' => $user->style['style_id'],
|
||||
'S_IS_BOT' => $user->data['is_bot'] ?? false,
|
||||
'S_REGISTERED_USER' => $user->data['is_registered'] ?? false,
|
||||
'S_USER_LOGGED_IN' => ($user->data['user_id'] != ANONYMOUS),
|
||||
'STYLE_ID' => $user->style['style_id'],
|
||||
));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user