Bug 550544 - Make Babel ready for PHP 7
eregi is removed in PHP 7. Also the 'i' for case insensitive is not
required for the used regex.
Change-Id: I2ded7a4444844e18b568245e6e53b6581dce340b
Signed-off-by: Paul Pazderski <paul-eclipse@ppazderski.de>
diff --git a/classes/system/user.class.php b/classes/system/user.class.php
old mode 100755
new mode 100644
index e6253ab..5031bb0
--- a/classes/system/user.class.php
+++ b/classes/system/user.class.php
@@ -32,7 +32,7 @@
function load($email, $password) {
if($email != "" && $password != "") {
- if (eregi('^[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z.]{2,5}$', $email)) {
+ if (preg_match('^[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z.]{2,5}$', $email)) {
global $addon;
$addon->callHook('user_authentication', array(&$this, $email, $password));
}