Skip to content

Commit

Permalink
move item order from array if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
stonebuzz committed Sep 2, 2022
1 parent 4423ec9 commit 3136494
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions inc/commoninjectionlib.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1465,6 +1465,14 @@ public function processAddOrUpdate() {
$this->results[get_class($item)] = $newID;

//Process other types

//change order of items if needed
if(isset($this->values['NetworkPort']) && isset($this->values['NetworkName'])){
$np = $this->values['NetworkPort'];
unset($this->values['NetworkPort']);
$this->values = array('NetworkPort' => $np) + $this->values;
}

foreach ($this->values as $itemtype => $data) {
//Do not process primary_type

Expand Down

0 comments on commit 3136494

Please sign in to comment.