projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13a474d
)
Separate checks for 0.0 and 0
author
Robert J. Lang
<robert@langorigami.com>
Wed, 19 May 2021 00:18:14 +0000
(17:18 -0700)
committer
Robert J. Lang
<robert@langorigami.com>
Wed, 19 May 2021 00:18:14 +0000
(17:18 -0700)
api/v3/utils.php
patch
|
blob
|
blame
|
history
diff --git
a/api/v3/utils.php
b/api/v3/utils.php
index 5919fb592b975c8d7f6693c4d2447915a8c4a212..d96aae6785bc280e409ee3d3b72edc6509e2f662 100644
(file)
--- a/
api/v3/utils.php
+++ b/
api/v3/utils.php
@@
-89,7
+89,7
@@
function civicrm_api3_verify_mandatory($params, $daoName = NULL, $keys = [], $ve
else {
// Disallow empty values except for the number zero.
// TODO: create a utility for this since it's needed in many places.
- if (!array_key_exists($key, $params) || (empty($params[$key]) && $params[$key] !== 0.0 && $params[$key] !== '0')) {
+ if (!array_key_exists($key, $params) || (empty($params[$key]) && $params[$key] !== 0.0 && $params[$key] !==
0 && $params[$key] !==
'0')) {
$unmatched[] = $key;
}
}