mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[feature/twig] Prevent errors from empty user->style
PHPBB3-11598
This commit is contained in:
parent
d7cff78443
commit
1a58d188aa
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue