Fixing a warning that was showing up if php had display_errors on.

The correct parameter type would be resource instead of curl in this case.