X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FGeneric%2FUpdate.php;h=68e4fe5e66e7aa7731191394dc76ff9845c5d21c;hb=3838662faff56daff7b4fbbd25c60a4b7242a484;hp=6de91c74646c042b65734d76667dbe88d205b542;hpb=149e631532beb9953cde6af3e647bbc82ee2e3d5;p=civicrm-core.git diff --git a/api/v3/Generic/Update.php b/api/v3/Generic/Update.php index 6de91c7464..68e4fe5e66 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']);