X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FGeneric%2FUpdate.php;h=b025b6a9e4a12de47ea6a56567710cb90739fe57;hb=b67022d16d25106799f57d39e9301b3f00af619c;hp=6de91c74646c042b65734d76667dbe88d205b542;hpb=149e631532beb9953cde6af3e647bbc82ee2e3d5;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']);