From: avel Date: Thu, 3 Nov 2005 17:09:26 +0000 (+0000) Subject: Got this notice: X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4156e6f3ee15a2c5d36e93abe1faf2aa5a34e5eb;p=squirrelmail.git Got this notice: Notice: Only variables should be assigned by reference in /data/www/squirrelmail-devel/src/view_html.php on line 57 Warning: Cannot modify header information - headers already sent by (output started at /data/www/squirrelmail-devel/src/view_html.php:57) in /data/www/squirrelmail-devel/src/view_html.php on line 84 PHP 4.4.0-3 (Ubuntu 5.10 package) This fix eliminates it. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10236 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/view_html.php b/src/view_html.php index a49efa62..9c1c5ed6 100644 --- a/src/view_html.php +++ b/src/view_html.php @@ -54,9 +54,9 @@ $message = &$messages[$mbx_response['UIDVALIDITY']][$passed_id]; if (!is_object($message)) { $message = sqimap_get_message($imap_stream, $passed_id, $mailbox); } -$message_ent = &$message->getEntity($ent_id); +$message_ent = $message->getEntity($ent_id); if ($passed_ent_id) { - $message = &$message->getEntity($passed_ent_id); + $message = $message->getEntity($passed_ent_id); } $header = $message_ent->header; $type0 = $header->type0; @@ -84,4 +84,4 @@ $body = MagicHTML( $body, $passed_id, $message, $mailbox); header('Content-Type: text/html; charset=' . $charset); echo $body; -?> \ No newline at end of file +?>