mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Fix error if the Department is also empty
This commit is contained in:
parent
5c7aaaac22
commit
11aa8971c8
|
@ -118,7 +118,7 @@ class UserImporter extends ItemImporter
|
||||||
*/
|
*/
|
||||||
public function createOrFetchDepartment($department_name)
|
public function createOrFetchDepartment($department_name)
|
||||||
{
|
{
|
||||||
if(is_null($department_name)){
|
if(is_null($department_name) || $department_name == ''){
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue