Fix packet parsing for unknown zones, or zones that are not default
This commit is contained in:
@@ -251,7 +251,7 @@ class Message extends FTNBase
|
||||
return $this->zone;
|
||||
|
||||
// If we have a domain, we'll use the zone from the domain
|
||||
if ($x=$this->fdomain) {
|
||||
if ($this->fdomain) {
|
||||
if (($x=$this->fdomain->zones->search(function($item) { return $item->zone_id == $this->fz; })) !== FALSE)
|
||||
return $this->fdomain->zones->get($x);
|
||||
}
|
||||
@@ -267,7 +267,7 @@ class Message extends FTNBase
|
||||
return $this->zone;
|
||||
|
||||
// If we have a domain, we'll use the zone from the domain
|
||||
if ($x=$this->tdomain) {
|
||||
if ($this->tdomain) {
|
||||
if (($x=$this->tdomain->zones->search(function($item) { return $item->zone_id == $this->tz; })) !== FALSE)
|
||||
return $this->tdomain->zones->get($x);
|
||||
}
|
||||
|
Reference in New Issue
Block a user