Skip to content

Commit

Permalink
CRM-20973: Fixes "Call to undefined function Civi\API\civicrm_api3_cr…
Browse files Browse the repository at this point in the history
…eate_error() in Civi/API/Kernel.php on line 413"
  • Loading branch information
dsnopek committed Jul 27, 2017
1 parent 2ddf454 commit 1b13635
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 1b13635

Please sign in to comment.