This commit is contained in:
liyuchun
2021-08-31 16:26:03 +08:00
parent 71a023247a
commit 705b0c69e8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2310,7 +2310,7 @@ EOT;
{
$libs = $this->getLibsByObject('book', 0, '', $appendLib);
$this->app->rawMethod = 'book';
if($libID == 0 and !empty($libs)) $libID = reset($libs)->id;
if(!empty($libs) and ($libID == 0 or !isset($libs[$libID]))) $libID = reset($libs)->id;
$this->lang->modulePageNav = $this->select($type, $objects, $objectID, $libs, $libID);
$object = new stdclass();
+1 -1
View File
@@ -52,7 +52,7 @@ if(empty($type)) $type = 'product';
echo '</ul></div>';
}
if($type == 'book' and ($canEditLib or $canManageBook))
if($type == 'book' and ($canEditLib or $canManageBook) and !empty($libs))
{
echo "<div class='menu-actions'>";
echo html::a('javascript:;', "<i class='icon icon-ellipsis-v'></i>", '', "data-toggle='dropdown' class='btn btn-link'");