Set packed boolean when packing Netmail's is successful

This commit is contained in:
Deon George
2021-08-16 22:30:34 +10:00
parent 628293c741
commit 5bf612e5b4
3 changed files with 10 additions and 5 deletions

View File

@@ -254,8 +254,10 @@ class Packet extends FTNBase
if (is_null($return)) {
$return = $this->createHeader();
foreach ($this->messages as $o)
$return .= "\02\00".(string)$o;
foreach ($this->messages as $o) {
if ($o->packed)
$return .= "\02\00".(string)$o;
}
$return .= "\00\00";
}