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:
a1b7cc9
)
Add unit tests for CRM_Utils_Type
author
Coleman Watts
<coleman@civicrm.org>
Sun, 27 Sep 2015 18:28:14 +0000
(14:28 -0400)
committer
monishdeb
<monish.deb@webaccessglobal.com>
Mon, 5 Oct 2015 20:31:01 +0000
(
02:01
+0530)
CRM/Utils/Type.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Utils/Type.php
b/CRM/Utils/Type.php
index 5e12acd9ba3524b00ecddd07709f3461ff28469c..aa761b1338e6e1095e211c98a0b332c6f8df1369 100644
(file)
--- a/
CRM/Utils/Type.php
+++ b/
CRM/Utils/Type.php
@@
-180,6
+180,7
@@
class CRM_Utils_Type {
if (!CRM_Utils_Rule::positiveInteger($item)) {
$valid = FALSE;
}
+ $item = (int) $item;
}
if ($valid) {
return $data;