fix undefined offset
Merge pull request #875 from grandoc/3.3

fix undefined offset
Merge branch '3.3' of https://github.com/Dolibarr/dolibarr.git into 3.3