diff --git a/main/document/showinframes.php b/main/document/showinframes.php index c4d6299dbb..31093e1ef8 100755 --- a/main/document/showinframes.php +++ b/main/document/showinframes.php @@ -111,9 +111,12 @@ if (in_array(strtolower($pathinfo['extension']), $playerSupportedFiles)) { $group_id = api_get_group_id(); $current_group = GroupManager::get_group_properties($group_id); -$current_group_name = $current_group['name']; if (isset($group_id) && $group_id != '') { + if ($current_group) { + $current_group_name = $current_group['name']; + } + $interbreadcrumb[] = [ 'url' => api_get_path(WEB_CODE_PATH).'group/group.php?'.api_get_cidreq(), 'name' => get_lang('Groups'), @@ -242,7 +245,7 @@ if (!$playerSupported && $execute_iframe) { $(\'#mainFrame\').on(\'load\', function () { this.style.height = (this.contentWindow.document.body.scrollHeight + 50) + \'px\'; }); - + '.$frameReady.' }); '; @@ -409,14 +412,14 @@ if ($execute_iframe) { echo $toolbar = Display::toolbarAction('actions-documents', [$actionsLeft]); - echo ''; } }