summaryrefslogtreecommitdiff
path: root/lib/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/functions.php')
-rw-r--r--lib/functions.php18
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/functions.php b/lib/functions.php
index ce73a13..98dc949 100644
--- a/lib/functions.php
+++ b/lib/functions.php
@@ -131,21 +131,3 @@ function timer($time = null, $label = '')
}
return $now;
}
-
-/**
- * Compare two email addresses with correct character-case handling
- * i.e. local part is case-sensitive, domain part is not
- */
-function compare_email($email1, $email2)
-{
- $email1 = explode('@', $email1);
- $email2 = explode('@', $email2);
-
- $domain1 = array_pop($email1);
- $domain2 = array_pop($email2);
-
- $email1 = implode('@', $email1) . '@' . mb_strtolower($domain1);
- $email2 = implode('@', $email2) . '@' . mb_strtolower($domain2);
-
- return $email1 === $email2;
-}