return null rather than casting to int if the id is null
This commit is contained in:
parent
74ee6fd0d4
commit
f356431cb5
@ -80,7 +80,7 @@ trait Import
|
||||
}
|
||||
}
|
||||
|
||||
return (int) $id;
|
||||
return $id == null ? null : (int) $id;
|
||||
}
|
||||
|
||||
public function getItemId($row)
|
||||
|
Loading…
x
Reference in New Issue
Block a user