summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorTimothy Warren <tim@timshomepage.net>2012-06-27 14:21:59 +0200
committerTimothy Warren <tim@timshomepage.net>2012-06-27 14:21:59 +0200
commitd37f0e9cfe106ff1a15b8f09df27e4f3a004b907 (patch)
tree963d70f006e24d34c62cebd27208e16c83a163a7 /system/libraries
parent384b34217b3709d3b3f11dbda3ac5c53274ff117 (diff)
Correct variable names
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Email.php2
-rw-r--r--system/libraries/Form_validation.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php
index 5e6f69842..0fcdbd83e 100644
--- a/system/libraries/Email.php
+++ b/system/libraries/Email.php
@@ -706,7 +706,7 @@ class CI_Email {
* @param string
* @return bool
*/
- public function valid_email($address)
+ public function valid_email($email)
{
return filter_var($email, FILTER_VALIDATE_EMAIL);
}
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php
index 9ef58724c..f3087f883 100644
--- a/system/libraries/Form_validation.php
+++ b/system/libraries/Form_validation.php
@@ -1076,7 +1076,7 @@ class CI_Form_validation {
*/
public function valid_email($str)
{
- return filter_var($email, FILTER_VALIDATE_EMAIL);
+ return filter_var($str, FILTER_VALIDATE_EMAIL);
}
// --------------------------------------------------------------------