diff options
Diffstat (limited to 'system/libraries/Email.php')
-rw-r--r-- | system/libraries/Email.php | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php index 7b5ebca8c..cbf6e23f0 100644 --- a/system/libraries/Email.php +++ b/system/libraries/Email.php @@ -684,13 +684,17 @@ class CI_Email { }
$clean_email = array();
-
- for ($i=0; $i < count($email); $i++)
+
+ foreach ($email as $addy)
{
- if (preg_match( '/\<(.*)\>/', $email[$i], $match))
- $clean_email[] = $match['1'];
+ if (preg_match( '/\<(.*)\>/', $addy, $match))
+ {
+ $clean_email[] = $match['1'];
+ }
else
- $clean_email[] = $email[$i];
+ {
+ $clean_email[] = $addy;
+ }
}
return $clean_email;
|