X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fmaintenance_functions.php;h=e9110d9abba7673dacc9e3087e63a795b4b12fa0;hb=e5848e7e22dffe36ea207111a3a4ed1f7d5a8639;hp=be0e6cfd8304fa595a59c8450a5efaeb8cdb6cd9;hpb=7db85bc0c45b62c28ba49e728f489ad4bc1c115f;p=mailer.git diff --git a/inc/libs/maintenance_functions.php b/inc/libs/maintenance_functions.php index be0e6cfd83..e9110d9abb 100644 --- a/inc/libs/maintenance_functions.php +++ b/inc/libs/maintenance_functions.php @@ -16,8 +16,8 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009, 2010 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2013 by Mailer Developer Team * + * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -56,12 +56,12 @@ function getMaintenance () { return $GLOBALS[__FUNCTION__]; } -// Checks wether 'maintenance' is "YES" +// Checks whether 'maintenance' is "YES" function isMaintenanceEnabled () { // 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