mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-01 03:54:56 +02:00
[feature/twig] Prevent errors from empty user->style
PHPBB3-11598
This commit is contained in:
parent
d7cff78443
commit
1a58d188aa
@ -186,7 +186,7 @@ class phpbb_template_twig implements phpbb_template
|
|||||||
$this->twig->getLoader()->setPaths($style_paths);
|
$this->twig->getLoader()->setPaths($style_paths);
|
||||||
|
|
||||||
// Core style namespace from phpbb_style::set_style()
|
// Core style namespace from phpbb_style::set_style()
|
||||||
if ($this->user && ($style_names === array($this->user->style['style_path']) || $style_names[0] == $this->user->style['style_path']))
|
if (isset($this->user->style['style_path']) && ($style_names === array($this->user->style['style_path']) || $style_names[0] == $this->user->style['style_path']))
|
||||||
{
|
{
|
||||||
$this->twig->getLoader()->setPaths($style_paths, 'core');
|
$this->twig->getLoader()->setPaths($style_paths, 'core');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user