mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +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
|
* @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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user