Skip to content

Commit

Permalink
Merge pull request #3 from ColonelMoutarde/patch-1
Browse files Browse the repository at this point in the history
Little optimisation
  • Loading branch information
rsmarshall committed Dec 8, 2014
2 parents 5533e63 + 8505e21 commit e20f1d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libraries/Gravatar.php
Expand Up @@ -23,8 +23,7 @@ class Gravatar {
*/
public function set_email($email)
{
$email = strtolower($email);
$email = trim($email);
$email = trim(strtolower($email));

if( ! filter_var($email, FILTER_VALIDATE_EMAIL) === FALSE)
{
Expand Down

0 comments on commit e20f1d7

Please sign in to comment.