summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-06-01 11:57:30 +0200
committerAndrey Andreev <narf@devilix.net>2014-06-01 11:57:30 +0200
commitf9201ae527d2c321976658f5c360f7127faa414c (patch)
tree0def0bf2e8b50c4718c134c39de271defebf22bb
parent9549666a1d026a8d275ba707b6c56506999f01cc (diff)
Fix wrong variable name
-rw-r--r--system/libraries/Form_validation.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php
index 555a65959..145692e89 100644
--- a/system/libraries/Form_validation.php
+++ b/system/libraries/Form_validation.php
@@ -1225,9 +1225,9 @@ class CI_Form_validation {
*/
public function valid_email($str)
{
- if (function_exists('idn_to_ascii') && $atpos = strpos($email, '@'))
+ if (function_exists('idn_to_ascii') && $atpos = strpos($str, '@'))
{
- $email = substr($email, 0, ++$atpos).idn_to_ascii(substr($email, $atpos));
+ $str = substr($str, 0, ++$atpos).idn_to_ascii(substr($str, $atpos));
}
return (bool) filter_var($str, FILTER_VALIDATE_EMAIL);