summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorRick Ellis <rick.ellis@ellislab.com>2008-08-21 00:18:48 +0200
committerRick Ellis <rick.ellis@ellislab.com>2008-08-21 00:18:48 +0200
commitc2abf1fdac7252a9145108db6d30ed5c31fac6ec (patch)
treeb4786377e34de95cece832c39fbe18a07c37d19b /system
parent209ac23cbe2e0d78c07e3696171db6e6c47f1cf2 (diff)
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Validation.php60
1 files changed, 30 insertions, 30 deletions
diff --git a/system/libraries/Validation.php b/system/libraries/Validation.php
index a0423c7b6..c828328b6 100644
--- a/system/libraries/Validation.php
+++ b/system/libraries/Validation.php
@@ -589,17 +589,17 @@ class CI_Validation {
// --------------------------------------------------------------------
- /**
- * Is Numeric
- *
- * @access public
- * @param string
- * @return bool
- */
- function is_numeric($str)
- {
- return ( ! is_numeric($str)) ? FALSE : TRUE;
- }
+ /**
+ * Is Numeric
+ *
+ * @access public
+ * @param string
+ * @return bool
+ */
+ function is_numeric($str)
+ {
+ return ( ! is_numeric($str)) ? FALSE : TRUE;
+ }
// --------------------------------------------------------------------
@@ -617,31 +617,31 @@ class CI_Validation {
// --------------------------------------------------------------------
- /**
- * Is a Natural number (0,1,2,3, etc.)
- *
- * @access public
- * @param string
- * @return bool
- */
- function is_natural($str)
- {
+ /**
+ * Is a Natural number (0,1,2,3, etc.)
+ *
+ * @access public
+ * @param string
+ * @return bool
+ */
+ function is_natural($str)
+ {
return (bool)preg_match( '/^[0-9]+$/', $str);
- }
+ }
// --------------------------------------------------------------------
- /**
- * Is a Natural number, but not a zero (1,2,3, etc.)
- *
- * @access public
- * @param string
- * @return bool
- */
+ /**
+ * Is a Natural number, but not a zero (1,2,3, etc.)
+ *
+ * @access public
+ * @param string
+ * @return bool
+ */
function is_natural_no_zero($str)
- {
+ {
return (bool)preg_match( '/^[1-9]+$/', $str);
- }
+ }
// --------------------------------------------------------------------