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:
4e8506a
)
CRM-14990. Update strictness of param comparison for consistency with the rest of...
author
Frank J. Gómez
<frank@ginkgostreet.com>
Wed, 16 Jul 2014 21:57:49 +0000
(17:57 -0400)
committer
Frank J. Gómez
<frank@ginkgostreet.com>
Wed, 16 Jul 2014 21:57:49 +0000
(17:57 -0400)
CRM/Core/BAO/CustomGroup.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Core/BAO/CustomGroup.php
b/CRM/Core/BAO/CustomGroup.php
index 1bf03e1988655ef95dea696dcb6924382f4ac8fd..060dd7dd1f37e64c00112efac997e0ea1f9b6a63 100644
(file)
--- a/
CRM/Core/BAO/CustomGroup.php
+++ b/
CRM/Core/BAO/CustomGroup.php
@@
-161,12
+161,7
@@
class CRM_Core_BAO_CustomGroup extends CRM_Core_DAO_CustomGroup {
}
if (array_key_exists('is_reserved', $params)) {
- if (in_array($params['is_reserved'], array(TRUE, 1, '1'), TRUE)) {
- $is_reserved = 1;
- } else {
- $is_reserved = 0;
- }
- $group->is_reserved = $is_reserved;
+ $group->is_reserved = $params['is_reserved'] ? 1 : 0;
}
$op = isset($params['id']) ? 'edit' : 'create';
CRM_Utils_Hook::pre($op, 'CustomGroup', CRM_Utils_Array::value('id', $params), $params);