X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fread_body.php;h=cdc15075d935653ba85807dec49d646da380ddf3;hb=d51894be063bf2e1349762bc554358c62d368e36;hp=d3302e3b7296158f29bbbf2c9b1f045c897b35b2;hpb=245a6892bf5c780904ef9677f24d624ea17e0749;p=squirrelmail.git
diff --git a/src/read_body.php b/src/read_body.php
index d3302e3b..cdc15075 100644
--- a/src/read_body.php
+++ b/src/read_body.php
@@ -41,7 +41,7 @@
echo "
";
echo "
\n";
echo " " . _("Viewing full header") . " - ";
- if ($where && $what) {
+ if (isset($where) && isset($what)) {
// Got here from a search
echo "";
} else {
@@ -51,6 +51,7 @@
echo "\n";
echo "";
+ $cnum = 0;
for ($i=1; $i < count($read)-1; $i++) {
$line = htmlspecialchars($read[$i]);
if (eregi("^>", $line)) {
@@ -70,15 +71,17 @@
}
}
for ($i=0; $i < count($second); $i = $j) {
- $f = $first[$i];
- $s = nl2br($second[$i]);
+ if (isset($first[$i]))
+ $f = $first[$i];
+ if (isset($second[$i]))
+ $s = nl2br($second[$i]);
$j = $i + 1;
while ($first[$j] == "" && $j < count($first)) {
$s .= " " . nl2br($second[$j]);
$j++;
}
parseEmail($s);
- echo "$f$s";
+ if (isset($f)) echo "$f$s";
}
echo " | \n";
echo " |