summaryrefslogtreecommitdiffstats
path: root/system/libraries/Validation.php
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-08-21 14:43:31 +0200
committerDerek Allard <derek.allard@ellislab.com>2008-08-21 14:43:31 +0200
commit993925b47a0bfb08e79961c47bcc3d247a03a5dd (patch)
tree4012e1f02407efb333a20c67e5d7d1cac8249b9f /system/libraries/Validation.php
parent719b65d54a85337c5616a781eff07d5031c106e9 (diff)
whitespace fixes
a minor re-ordering of the changelog
Diffstat (limited to 'system/libraries/Validation.php')
-rw-r--r--system/libraries/Validation.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/system/libraries/Validation.php b/system/libraries/Validation.php
index cae1a3f5a..b42d0e06d 100644
--- a/system/libraries/Validation.php
+++ b/system/libraries/Validation.php
@@ -640,17 +640,17 @@ class CI_Validation {
*/
function is_natural_no_zero($str)
{
- if ( ! preg_match( '/^[0-9]+$/', $str))
- {
- return FALSE;
- }
-
- if ($str == 0)
- {
- return FALSE;
- }
-
- return TRUE;
+ if ( ! preg_match( '/^[0-9]+$/', $str))
+ {
+ return FALSE;
+ }
+
+ if ($str == 0)
+ {
+ return FALSE;
+ }
+
+ return TRUE;
}
// --------------------------------------------------------------------