Skip to content

Commit

Permalink
bugfix: uke/pit: dont add investment projects with empty name to netw…
Browse files Browse the repository at this point in the history
…ork node project lists
  • Loading branch information
chilek committed Jul 12, 2023
1 parent 5abb387 commit 25cf463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/ukepit.php
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ function find_nodes_for_netdev($customerid, $netdevid, &$customer_nodes, &$custo
$netnodename = mb_strtoupper($netnodename);

if (array_key_exists($netnodename, $netnodes)) {
if (!in_array($netdevice['invproject'], $netnodes[$netnodename]['invproject'])) {
if (strlen($netdevice['invproject']) && !in_array($netdevice['invproject'], $netnodes[$netnodename]['invproject'])) {
$netnodes[$netnodename]['invproject'][] = $netdevice['invproject'];
}
} else {
Expand Down

0 comments on commit 25cf463

Please sign in to comment.