diff --git a/app/Filament/Imports/UserImporter.php b/app/Filament/Imports/UserImporter.php index a615845..59a7d9b 100644 --- a/app/Filament/Imports/UserImporter.php +++ b/app/Filament/Imports/UserImporter.php @@ -56,7 +56,7 @@ class UserImporter extends Importer $warnMsg = []; $plant = null; if (Str::length($this->data['plant']) > 0) { - if (Str::length($this->data['plant']) < 4 || !is_numeric($this->data['plant'] || !preg_match('/^[1-9]\d{3,}$/', $this->data['plant']))) { + if (Str::length($this->data['plant']) < 4 || !is_numeric($this->data['plant']) || !preg_match('/^[1-9]\d{3,}$/', $this->data['plant'])) { $warnMsg[] = "Invalid plant code found!"; } else {