Merge pull request #1857 from srini85/master
return null rather than casting to int if the id is null
This commit is contained in:
commit
4a6d1b412e
@ -84,7 +84,7 @@ trait Import
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return (int) $id;
|
return $id == null ? null : (int) $id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getItemId($row)
|
public function getItemId($row)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user