Skip to content

Commit

Permalink
Merge pull request #10773 from dsnopek/crm-20973
Browse files Browse the repository at this point in the history
CRM-20973: Fixes "Call to undefined function Civi\API\civicrm_api3_create_error() …
  • Loading branch information
eileenmcnaughton authored Jul 27, 2017
2 parents 9adcfb2 + 1b13635 commit 5eb2555
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Civi/API/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ public function createError($msg, $data, $apiRequest, $code = NULL) {
}
}

$data = civicrm_api3_create_error($msg, $data);
$data = \civicrm_api3_create_error($msg, $data);

if (isset($apiRequest['params']) && is_array($apiRequest['params']) && !empty($apiRequest['params']['api.has_parent'])) {
$errorCode = empty($data['error_code']) ? 'chained_api_failed' : $data['error_code'];
Expand Down

0 comments on commit 5eb2555

Please sign in to comment.