diff --git a/module/doc/view/tablecontents.html.php b/module/doc/view/tablecontents.html.php index 6e2f925477..59ec416304 100644 --- a/module/doc/view/tablecontents.html.php +++ b/module/doc/view/tablecontents.html.php @@ -37,12 +37,12 @@ if(empty($type)) $type = 'product'; $canManageMenu = common::hasPriv('tree', 'browse'); $canEditLib = common::hasPriv('doc', 'editLib'); $canDeleteLib = common::hasPriv('doc', 'deleteLib'); - if($type != 'book' and ($canManageMenu or $canEditLib or $canDeleteLib)) + if($type != 'book' and ($canManageMenu or $canEditLib or $canDeleteLib) and !empty($libs)) { echo "