Skip to content
Snippets Groups Projects
Unverified Commit 78a3f61f authored by Seamus Lee's avatar Seamus Lee Committed by GitHub
Browse files

Merge pull request #13263 from eileenmcnaughton/api_ex

#592 Add default for  in Exception class.
parents b86845e5 bc27f510
Branches
Tags
No related merge requests found
......@@ -106,7 +106,7 @@ class CiviCRM_API3_Exception extends Exception {
* @param Exception|NULL $previous
* A previous exception which caused this new exception.
*/
public function __construct($message, $error_code, $extraParams = array(), Exception $previous = NULL) {
public function __construct($message, $error_code = 0, $extraParams = array(), Exception $previous = NULL) {
parent::__construct(ts($message));
$this->extraParams = $extraParams + array('error_code' => $error_code);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment