Commit 06b0207e authored by Ad Schellevis's avatar Ad Schellevis

(menu) fix empty descriptions in MenuController

parent df86acd7
......@@ -130,7 +130,7 @@ class MenuController extends ApiControllerBase
$ifarr = array();
foreach ($cnf->object()->interfaces->children() as $key => $node) {
$ifarr[$key] = $node->descr ? $node->descr->__toString() : strtoupper($key);
$ifarr[$key] = !empty($node->descr) ? $node->descr->__toString() : strtoupper($key);
}
natcasesort($ifarr);
$ordid = 0;
......
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