$TITLE = "";
// Add title decorations? (left)
- if ((!empty($CONFIG)) && (isset($link)) && (isset($db))) {
+ if ((count($CONFIG) > 1) && (is_resource($link)) && ($db) !== false) {
if (($CONFIG['title_decoration'] == 'Y') && (trim(!empty($CONFIG['title_left'])))) $TITLE .= trim($CONFIG['title_left'])." ";
$TITLE .= MAIN_TITLE;