Fixed static analysis issues

This commit is contained in:
Jan Böhmer 2023-03-15 21:05:30 +01:00
parent 5745fc1046
commit 2c799d894b
2 changed files with 2 additions and 2 deletions

View file

@ -96,7 +96,7 @@ class PartImportExportController extends AbstractController
goto ret;
}
if ($errors) {
if (!isset($errors) || $errors) {
$this->addFlash('error', 'parts.import.flash.error');
} else {
$this->addFlash('success', 'parts.import.flash.success');