From 1b1363552d8edc6e595cb5d7fc0999a3170e198e Mon Sep 17 00:00:00 2001 From: David Snopek Date: Wed, 26 Jul 2017 22:08:40 -0500 Subject: [PATCH] CRM-20973: Fixes "Call to undefined function Civi\API\civicrm_api3_create_error() in Civi/API/Kernel.php on line 413" --- Civi/API/Kernel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Civi/API/Kernel.php b/Civi/API/Kernel.php index 529d5636c537..022de94f5a78 100644 --- a/Civi/API/Kernel.php +++ b/Civi/API/Kernel.php @@ -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'];