Fixing the substring line 35 (different behaviors between my WAMP and my
OVH server).