X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fabook_take%2Fsetup.php;h=dd36b66235204b93eb65e157f2819c66c811b1e8;hb=3e1ed43f67e37434682e9afb289c8e5e02759a05;hp=2f45a70470b0225001cc47897b65eaa0a0043a37;hpb=2798d75769082b5c3b74d9c52a9606f3c0a09fc6;p=squirrelmail.git diff --git a/plugins/abook_take/setup.php b/plugins/abook_take/setup.php index 2f45a704..dd36b662 100755 --- a/plugins/abook_take/setup.php +++ b/plugins/abook_take/setup.php @@ -1,7 +1,12 @@ getAddress()); $i ++; } } @@ -80,10 +85,14 @@ function abook_take_read() html_tag( 'tr' ) . html_tag( 'td' ); - abook_take_read_string($message->header->from); - abook_take_read_array($message->header->cc); - abook_take_read_array($message->header->reply_to); - abook_take_read_array($message->header->to); + if (isset($message->rfc822_header->from)) + abook_take_read_array($message->rfc822_header->from); + if (isset($message->rfc822_header->cc)) + abook_take_read_array($message->rfc822_header->cc); + if (isset($message->rfc822_header->reply_to)) + abook_take_read_array($message->rfc822_header->reply_to); + if (isset($message->rfc822_header->to)) + abook_take_read_array($message->rfc822_header->to); $new_body = $body;