X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FGeneric%2FUpdate.php;h=b025b6a9e4a12de47ea6a56567710cb90739fe57;hb=a7a89c5f335c3b010b0bb8b494da38b8723f28d7;hp=6de91c74646c042b65734d76667dbe88d205b542;hpb=a70a27f6e4be1cff604b9d9b94952d846a909842;p=civicrm-core.git diff --git a/api/v3/Generic/Update.php b/api/v3/Generic/Update.php index 6de91c7464..b025b6a9e4 100644 --- a/api/v3/Generic/Update.php +++ b/api/v3/Generic/Update.php @@ -1,5 +1,30 @@ 1) { - return $errorFnName("More than one " . $apiRequest['entity'] . " with id " . $apiRequest['params'][$key_id]); + return civicrm_api3_create_error("More than one " . $apiRequest['entity'] . " with id " . $apiRequest['params'][$key_id]); } if ($existing['count'] == 0) { - return $errorFnName("No " . $apiRequest['entity'] . " with id " . $apiRequest['params'][$key_id]); + return civicrm_api3_create_error("No " . $apiRequest['entity'] . " with id " . $apiRequest['params'][$key_id]); } $existing = array_pop($existing['values']);