Skip to content

Commit

Permalink
Fix bug in bond interface processing.
Browse files Browse the repository at this point in the history
  • Loading branch information
votdev committed Jul 19, 2016
1 parent 65f4718 commit b1b77e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions deb/openmediavault/debian/changelog
Expand Up @@ -2,6 +2,7 @@ openmediavault (3.0.27) stable; urgency=low

* Fix locale issue. The PHP function doubleval/floatval does not respect
the LC_NUMERIC setting.
* Fix bug in bond interface processing.
* Mantis 0001539: Can't create filesystem.
* Mantis 0001576: System->Network->Firewall should have a coloum with
'Extra options'.
Expand Down
Expand Up @@ -658,11 +658,11 @@ class OMVRpcServiceNetwork extends \OMV\Rpc\ServiceAbstract {
]
], 1);
// Get interface details of the bonding slaves.
foreach (explode(",", $object['slaves']) as $slavek => $slavev)
foreach (explode(",", $object->get("slaves")) as $slavek => $slavev)
$result[] = $this->getIfaceInfo($slavev);
// Remove the bond interface itself from the result list.
foreach ($result as $resultk => $resultv) {
if ($resultv['devicename'] !== $object['devicename'])
if ($resultv['devicename'] !== $object->get("devicename"))
continue;
// Remove the item and re-index the array.
unset($result[$resultk]);
Expand Down

0 comments on commit b1b77e8

Please sign in to comment.