// Do not add the fatal message in installation mode
if (basename($_SERVER['PHP_SELF']) != "install.php") ADD_FATAL(NO_CONFIG_FOUND);
}
- }
+ } // END - if
// Save some little memory
unset($TITLE);
// Output page header code
LOAD_TEMPLATE("page_header");
- // Include meta data here
- LOAD_TEMPLATE("metadata");
+ // Include meta data in "guest" module
+ if ($GLOBALS['module'] == "index") {
+ // Load meta data template
+ LOAD_TEMPLATE("metadata");
- // Add meta description to header
- if ((isBooleanConstantAndTrue('mxchange_installed')) && (isBooleanConstantAndTrue('admin_registered')) && ($GLOBALS['module'] != "admin") && ($GLOBALS['module'] != "login") && (isset($db)) && (isset($link))) {
- // Add meta description not in admin and login module and when the script is installed
- META_DESCRIPTION($GLOBALS['module'], $GLOBALS['what']);
+ // Add meta description to header
+ if ((isBooleanConstantAndTrue('mxchange_installed')) && (isBooleanConstantAndTrue('admin_registered')) && (isset($db)) && (is_resource($link))) {
+ // Add meta description not in admin and login module and when the script is installed
+ META_DESCRIPTION($GLOBALS['module'], $GLOBALS['what']);
+ } // END - if
} // END - if
// Include more header data here