Commit e5bd0c46 authored by Steven Ayers's avatar Steven Ayers Committed by Steven Ayers
Browse files

Issue #3313060 by bluegeek9: Log nothing when in maintenance mode

parent ac953cbe
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -120,6 +120,10 @@ function visitors_get_geoip_data($ip) {
 */
function visitors_exit($destination = NULL) {

  if ('1' == variable_get('maintenance_mode')) {
    return NULL;
  }

  $ip_str = ip_address();
  if (!visitors_is_ip_valid($ip_str)) {
    return NULL;