diff options
-rw-r--r-- | includes/bootstrap.inc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 3693719f1..ba88daf7b 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -1663,8 +1663,13 @@ function drupal_get_schema($table = NULL, $rebuild = FALSE) { */ function drupal_function_exists($function) { static $checked = array(); + static $maintenance; - if (defined('MAINTENANCE_MODE')) { + if (!isset($maintenance)) { + $maintenance = defined('MAINTENANCE_MODE'); + } + + if ($maintenance) { return function_exists($function); } |