]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/maintenance_functions.php
Renamed ifSqlHasZeroNums() to ifSqlHasZeroNumRows() and improved some queries.
[mailer.git] / inc / libs / maintenance_functions.php
index be0e6cfd8304fa595a59c8450a5efaeb8cdb6cd9..f486309379e1ecfc0e690308e4c47a3824216105 100644 (file)
@@ -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 - 2015 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