From: Chris Cant Date: Thu, 9 Nov 2023 14:37:50 +0000 (+0000) Subject: Ensure api/v3/utils.php required before civicrm_api3_create_error 5.68 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=db0ed64d0a170d1165bc3e94c77d886b20302acb;p=civicrm-core.git Ensure api/v3/utils.php required before civicrm_api3_create_error 5.68 --- diff --git a/Civi/API/Kernel.php b/Civi/API/Kernel.php index 9630e8c60b..97a9f35ca8 100644 --- a/Civi/API/Kernel.php +++ b/Civi/API/Kernel.php @@ -404,6 +404,7 @@ class Kernel { } } + require_once "api/v3/utils.php"; $data = \civicrm_api3_create_error($msg, $data); if (isset($apiRequest['params']) && is_array($apiRequest['params']) && !empty($apiRequest['params']['api.has_parent'])) {