projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge pull request #10087 from lcdservices/CRM-20368
[civicrm-core.git]
/
api
/
v3
/
examples
/
Contact
/
FormatSingleValue.php
diff --git
a/api/v3/examples/Contact/FormatSingleValue.php
b/api/v3/examples/Contact/FormatSingleValue.php
index 5dea4811170e4ef8c7e82aae20d637bd713758cf..49d52becc1b09f9dd70fffe023c5acdf0d55441a 100644
(file)
--- a/
api/v3/examples/Contact/FormatSingleValue.php
+++ b/
api/v3/examples/Contact/FormatSingleValue.php
@@
-24,7
+24,8
@@
function contact_getvalue_example() {
$errorCode = $e->getErrorCode();
$errorData = $e->getExtraParams();
return array(
- 'error' => $errorMessage,
+ 'is_error' => 1,
+ 'error_message' => $errorMessage,
'error_code' => $errorCode,
'error_data' => $errorData,
);