routing, fix typo

This commit is contained in:
Ad Schellevis 2016-03-13 14:30:20 +01:00
parent b72988299f
commit ecb715c338

View File

@ -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'] = "";
}
}
}