// Is the cache entry set
if (!isset($GLOBALS[__FUNCTION__])) {
// No, so determine it
- $GLOBALS[__FUNCTION__] = (getMaintenance() == 'Y');
+ $GLOBALS[__FUNCTION__] = ((isConfigEntrySet('maintenance')) && (getMaintenance() == 'Y'));
} // END - if
// Return cache