Whoops, copied the wrong one. There is a . missing on that line. It should be:

echo "Error is " . implode(' ',$error);