removed deprecated pass-by-reference which caused a php warning

This commit is contained in:
Christian Binder 2007-12-20 19:49:55 +00:00
parent b0146349db
commit 5fee16c3ef

View File

@ -416,7 +416,7 @@ final class notification {
*/ */
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,'<')) { // _address contains a fullname part
ereg('^(.*)[:space:]{0,1}<(.*)>',$_address,&$parts); ereg('^(.*)[:space:]{0,1}<(.*)>',$_address, $parts);
$fullname = trim(trim($parts[1]),'\"'); $fullname = trim(trim($parts[1]),'\"');
$email = $parts[2]; $email = $parts[2];
} else { } else {