diff --git a/module/program/ui/browse.html.php b/module/program/ui/browse.html.php
index 880ec65e47..0207c0993b 100644
--- a/module/program/ui/browse.html.php
+++ b/module/program/ui/browse.html.php
@@ -14,6 +14,10 @@ foreach(\customModel::getMainMenu() as $menuItem)
);
}
+/* Generate dropdown menus. */
+$userMenu = dropdown(setId('userMenu'));
+foreach(\commonModel::printUserBarZin() as $item) $userMenu->append(item($item));
+
Page(
set('title', $title),
Pageheader(
@@ -63,6 +67,7 @@ Page(
),
),
),
+ $userMenu,
);
/*
diff --git a/zin/wg/zuinav/v1.php b/zin/wg/zuinav/v1.php
index 8b3be54599..cae2c547fb 100755
--- a/zin/wg/zuinav/v1.php
+++ b/zin/wg/zuinav/v1.php
@@ -19,7 +19,7 @@ class zuinav extends \zin\core\wg
protected function buildItem($item)
{
- if (is_array($item) && $item['type'] === 'divider') return h5::li()->addClass('nav-divider');
+ if (is_array($item) && isset($item['type']) && $item['type'] === 'divider') return h5::li()->addClass('nav-divider');
$a = h5::a();
if (isset($item['active'])) $a->addClass('active');