* Fix bug #14439.
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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'");
|
||||
|
||||
Reference in New Issue
Block a user