diff --git a/libraries/header_scripts.inc.php b/libraries/header_scripts.inc.php index c25aa990e..a65445bef 100644 --- a/libraries/header_scripts.inc.php +++ b/libraries/header_scripts.inc.php @@ -20,12 +20,14 @@ if ( false === $GLOBALS['cfg']['AllowThirdPartyFraming']) { } // generate title (unless we already have $page_title, from cookie auth) if (! isset($page_title)) { - $title = PMA_expandUserString( - !empty($GLOBALS['table']) ? $GLOBALS['cfg']['TitleTable'] : - (!empty($GLOBALS['db']) ? $GLOBALS['cfg']['TitleDatabase'] : - (!empty($GLOBALS['cfg']['Server']['host']) ? $GLOBALS['cfg']['TitleServer'] : + if ($GLOBALS['server'] > 0) { + $title = PMA_expandUserString( + ! empty($GLOBALS['table']) ? $GLOBALS['cfg']['TitleTable'] : + (! empty($GLOBALS['db']) ? $GLOBALS['cfg']['TitleDatabase'] : + (! empty($GLOBALS['cfg']['Server']['host']) ? $GLOBALS['cfg']['TitleServer'] : $GLOBALS['cfg']['TitleDefault'])) ); + } } else { $title = $page_title; } @@ -57,7 +59,7 @@ foreach ($GLOBALS['js_include'] as $js_script_file) { // Updates the title of the frameset if possible (ns4 does not allow this) if (typeof(parent.document) != 'undefined' && typeof(parent.document) != 'unknown' && typeof(parent.document.title) == 'string') { - parent.document.title = ''; + parent.document.title = ''; }