mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-13 18:58:52 +01:00
Fixed static analysis issues
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user