mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-30 00:46:04 +03:00
Move fclose and unlink to before the return so they're actually called.
This commit is contained in:
parent
502fac0b37
commit
33f3d27d7b
@ -47,12 +47,12 @@ class Mailgun{
|
|||||||
throw $ex;
|
throw $ex;
|
||||||
}
|
}
|
||||||
$result = $this->post("$workingDomain/messages.mime", $postData, array("message" => $tempFile));
|
$result = $this->post("$workingDomain/messages.mime", $postData, array("message" => $tempFile));
|
||||||
return $result;
|
|
||||||
fclose($fileName);
|
fclose($fileName);
|
||||||
unlink($fileName);
|
unlink($fileName);
|
||||||
|
return $result;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
throw new Exceptions\MissingRequiredMIMEParameters(EXCEPTION_MISSING_REQUIRED_MIME_PARAMETERS);
|
throw new Exceptions\git (EXCEPTION_MISSING_REQUIRED_MIME_PARAMETERS);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user