mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 10:49:00 +02:00
Fixed PHPstan issues.
This commit is contained in:
parent
22a200e261
commit
28187f1ef2
2 changed files with 3 additions and 1 deletions
|
@ -67,7 +67,7 @@ final class LabelHTMLGenerator
|
|||
|
||||
$page = 1;
|
||||
foreach ($elements as $element) {
|
||||
if ($options->getLinesMode() === 'twig' && $sandboxed_twig !== null) {
|
||||
if ($options->getLinesMode() === 'twig' && isset($sandboxed_twig) && isset($current_user)) {
|
||||
try {
|
||||
$lines = $sandboxed_twig->render(
|
||||
'lines',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue