"removed deprecated ereg, to get ride of the warning"

This commit is contained in:
Ralf Becker 2010-05-03 06:44:26 +00:00
parent d22a9aa537
commit bb0ab3d0ff

View File

@ -501,8 +501,7 @@ final class notifications {
* @return string chosen part of the address * @return string chosen part of the address
*/ */
private function get_addresspart($_address, $_part='email') { private function get_addresspart($_address, $_part='email') {
if(strpos($_address,'<')) { // _address contains a fullname part if(strpos($_address,'<') && preg_match('/^(.*)\S?\<(.*)\>/',$_address, $parts)) { // _address contains a fullname part
ereg('^(.*)[:space:]{0,1}<(.*)>',$_address, $parts);
$fullname = trim(trim($parts[1]),'\"'); $fullname = trim(trim($parts[1]),'\"');
$email = $parts[2]; $email = $parts[2];
} else { } else {