From b5da116ed9634405a68a6ff9d316cdf917959611 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Tue, 13 Dec 2016 18:54:06 +0000 Subject: [PATCH] Fix check in dad7dcbf4b803e56c164c91f0014054f68bee1bd --- includes/class-wc-geo-ip.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/class-wc-geo-ip.php b/includes/class-wc-geo-ip.php index 246f37d9455..a30c8efbd59 100644 --- a/includes/class-wc-geo-ip.php +++ b/includes/class-wc-geo-ip.php @@ -1632,8 +1632,8 @@ class WC_Geo_IP { * @return int|bool */ public function geoip_country_id_by_addr_v6( $addr ) { - if ( defined( 'AF_INET6' ) ) { - $this->log( 'GEOIP (geoip_country_id_by_addr_v6): PHP was compiled without --disable-ipv6 option' ); + if ( ! defined( 'AF_INET6' ) ) { + $this->log( 'GEOIP (geoip_country_id_by_addr_v6): PHP was compiled with --disable-ipv6 option' ); return false; } $ipnum = inet_pton( $addr );