Just optimisations
This commit is contained in:
@@ -9,7 +9,7 @@ trait ParseNodes
|
||||
/**
|
||||
* Parse a seenby or path list and return node models
|
||||
*/
|
||||
protected function parse_nodes(Zone $zone,string $line,$create=TRUE)
|
||||
protected function parse_nodes(Zone $zo,string $line,$create=TRUE)
|
||||
{
|
||||
$net = FALSE;
|
||||
$result = collect();
|
||||
@@ -24,7 +24,7 @@ trait ParseNodes
|
||||
if (! $net)
|
||||
throw new \Exception('Missing Net?',$node);
|
||||
|
||||
$result->push($this->get_node($zone->id,$net,$node,0,$create));
|
||||
$result->push($this->get_node(['z'=>$zo->id,'n'=>$net,'f'=>$node,'p'=>0],$create));
|
||||
}
|
||||
|
||||
return $result;
|
||||
|
Reference in New Issue
Block a user