Commit 1159b089 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

routing, fix typo

(cherry picked from commit ecb715c3)
parent 484c2001
......@@ -109,7 +109,7 @@ class InterfaceController extends ApiControllerBase
public function getRoutesAction()
{
$backend = new Backend();
if (empty($this->request->get('resolve', null))) {
if (empty($this->request->get('resolve'))) {
$response = $backend->configdpRun("interface routes list -n json");
} else {
$response = $backend->configdpRun("interface routes list json");
......@@ -120,9 +120,9 @@ class InterfaceController extends ApiControllerBase
$intfmap = $this->getInterfaceNames();
foreach ($routingtable as &$routingentry) {
if (array_key_exists($routingentry['netif'], $intfmap)) {
$ndpentry['intf_description'] = $intfmap[$routingentry['netif']];
$routingentry['intf_description'] = $intfmap[$routingentry['netif']];
} else {
$ndpentry['intf_description'] = "";
$routingentry['intf_description'] = "";
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment