Correct variable names
diff --git a/system/libraries/Email.php b/system/libraries/Email.php
index 5e6f698..0fcdbd8 100644
--- a/system/libraries/Email.php
+++ b/system/libraries/Email.php
@@ -706,7 +706,7 @@
* @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 9ef5872..f3087f8 100644
--- a/system/libraries/Form_validation.php
+++ b/system/libraries/Form_validation.php
@@ -1076,7 +1076,7 @@
*/
public function valid_email($str)
{
- return filter_var($email, FILTER_VALIDATE_EMAIL);
+ return filter_var($str, FILTER_VALIDATE_EMAIL);
}
// --------------------------------------------------------------------