- if ((count($_CONFIG) > 1) && (is_resource($link)) && (isset($db))) {
- if (($_CONFIG['enable_title_deco'] == 'Y') && (trim(!empty($_CONFIG['title_left'])))) $TITLE .= trim($_CONFIG['title_left'])." ";
+ // Config and database connection valid?
+ if ((isset($_CONFIG)) && (is_array($_CONFIG)) && (count($_CONFIG) > 1) && (is_resource($link)) && (isset($db))) {
+ // Title decoration enabled?
+ if (($_CONFIG['enable_title_deco'] == "Y") && (!empty($_CONFIG['title_left']))) $TITLE .= trim($_CONFIG['title_left'])." ";
+
+ // Do we have some extra title?
+ if (!empty($EXTRA_TITLE)) {
+ // Then prepent it
+ $TITLE .= $EXTRA_TITLE." by ";
+ } // END - if
+
+ // Add main title