return null rather than casting to int if the id is null

This commit is contained in:
Srini Vasudevan 2021-02-13 11:17:36 +11:00
parent 74ee6fd0d4
commit f356431cb5

View File

@ -80,7 +80,7 @@ trait Import
}
}
return (int) $id;
return $id == null ? null : (int) $id;
}
public function getItemId($row)