mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
"removed deprecated ereg, to get ride of the warning"
This commit is contained in:
parent
d22a9aa537
commit
bb0ab3d0ff
@ -501,8 +501,7 @@ final class notifications {
|
||||
* @return string chosen part of the address
|
||||
*/
|
||||
private function get_addresspart($_address, $_part='email') {
|
||||
if(strpos($_address,'<')) { // _address contains a fullname part
|
||||
ereg('^(.*)[:space:]{0,1}<(.*)>',$_address, $parts);
|
||||
if(strpos($_address,'<') && preg_match('/^(.*)\S?\<(.*)\>/',$_address, $parts)) { // _address contains a fullname part
|
||||
$fullname = trim(trim($parts[1]),'\"');
|
||||
$email = $parts[2];
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user