From 0975b225822b8bfdc869b2f0a387c892ff07c112 Mon Sep 17 00:00:00 2001 From: Jared Johnson Date: Thu, 13 Nov 2014 14:19:34 -0600 Subject: [PATCH] Get rid of a warning --- plugins/ident/geoip | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ident/geoip b/plugins/ident/geoip index 8a3b4b1..a816eb8 100644 --- a/plugins/ident/geoip +++ b/plugins/ident/geoip @@ -138,7 +138,7 @@ sub register { $self->{_args}{db_dir} ||= '/usr/local/share/GeoIP'; $self->load_geoip() or return; - return if $self->{_args}{add_headers} !~ /false/i; + return if defined $self->{_args}{add_headers} and $self->{_args}{add_headers} !~ /false/i; $self->register_hook( data_post => 'add_headers' ); }