Fix error return project deletion
Better error management in delete project method
Merge branch '3.5' of git@github.com:Dolibarr/dolibarr.git into 3.5
[ bug #1377 ] Warning: get_class() called without object from outside a
class
Merge pull request #1583 from FHenry/3.5

Fix error return project deletion