fix undefined offset
Merge branch 'develop' of https://github.com/Dolibarr/dolibarr into develop
Merge pull request #874 from grandoc/develop

Develop