dix4life Posted September 18, 2012 Share Posted September 18, 2012 Hello, I have the contribution newsletter_bulk installed (Advanced bulk mailer). Now the following problem has ocured when installing PHP 5.3 on the server. The ereg function has to be changed to i think preg_match. Line 38: if (eregi('^[-a-z0-9._]+@([-a-z0-9_]+\.)+[a-z]{2,6}$',$row['customers_email_address'])) { Can someone please change this to the right PHP 5.3 compatible line? Thanks in advanced! Best regards, Martin Quote Link to comment Share on other sites More sharing options...
MrPhil Posted September 18, 2012 Share Posted September 18, 2012 if (preg_match('~^[-a-z0-9._]+@([-a-z0-9_]+\.)+[a-z]{2,6}$~i',$row['customers_email_address'])) { For future reference, http://us.php.net/manual/en/migration53.deprecated.php Quote Link to comment Share on other sites More sharing options...
dix4life Posted September 18, 2012 Author Share Posted September 18, 2012 Thank you very much! I'm not that good with PHP. I've manage to get the most deprecated code change by a lot of searching, google, updating contributions. But this one i couldn't find so i thought i post it on the forum so maybe someone can change the code for me. It's only one line. Thanks again. Best regards, Martin Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.