mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-24 08:07:32 +01:00
Fixed PHPstan issues.
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user