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