Get rid of a warning

This commit is contained in:
Jared Johnson 2014-11-13 14:19:34 -06:00
parent 3b2b720ed5
commit 0975b22582

View File

@ -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' );
}