-if (defined('frameset_active')) {
- // Initialize variables
- $header = ""; $FOOTER = "";
- if (empty($GLOBALS['what'])) $GLOBALS['what'] = "";
- if (($header != "1") && ($header != "2")) {
- // If not in CSS mode generate the header
- if (($CSS != "1")) {
- // Generate header
- $TITLE = "";
-
- // Add title decorations? (left)
- if ((!empty($CONFIG)) && (isset($link)) && (isset($db))) {
- if (($CONFIG['title_decoration'] == "Y") && (trim(!empty($CONFIG['title_left'])))) $TITLE .= trim($CONFIG['title_left'])." ";
+// Initialize variables
+if (!isset($header)) $header = 0;
+
+if (($header != "1") && ($header != "2")) {
+ // If not in CSS mode generate the header
+ if (($CSS != "1")) {
+ // Generate header
+ $TITLE = "";
+
+ // Add title decorations? (left)
+ if (!defined('__PAGE_TITLE')) {
+ if ((count($_CONFIG) > 1) && (is_resource($link)) && (isset($db))) {
+ if (($_CONFIG['title_decoration'] == 'Y') && (trim(!empty($_CONFIG['title_left'])))) $TITLE .= trim($_CONFIG['title_left'])." ";