From f2225b2cfa2c8a699f92d0e84474aab96341893a Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 13 Sep 2013 13:29:08 +1200 Subject: [PATCH] fix error to throw Exception --- api/v3/Profile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v3/Profile.php b/api/v3/Profile.php index 2f87ce3526..aefd89c317 100644 --- a/api/v3/Profile.php +++ b/api/v3/Profile.php @@ -346,7 +346,7 @@ function civicrm_api3_profile_apply($params) { ); if (empty($data)) { - return civicrm_api3_create_error('Enable to format profile parameters.'); + throw new API_Exception('Enable to format profile parameters.'); } return civicrm_api3_create_success($data); -- 2.25.1