Add unit tests for CRM_Utils_Type
authorColeman Watts <coleman@civicrm.org>
Sun, 27 Sep 2015 18:28:14 +0000 (14:28 -0400)
committermonishdeb <monish.deb@webaccessglobal.com>
Mon, 5 Oct 2015 20:31:01 +0000 (02:01 +0530)
CRM/Utils/Type.php

index 5e12acd9ba3524b00ecddd07709f3461ff28469c..aa761b1338e6e1095e211c98a0b332c6f8df1369 100644 (file)
@@ -180,6 +180,7 @@ class CRM_Utils_Type {
             if (!CRM_Utils_Rule::positiveInteger($item)) {
               $valid = FALSE;
             }
+            $item = (int) $item;
           }
           if ($valid) {
             return $data;