From 98abbf01840de0a7b4d0cbe4970e1a4de0849fde Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Mon, 9 Nov 2015 22:03:22 -0200 Subject: [PATCH] Fixed fseek check in WC_Geo_IP class --- 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 6406e7cd349..deba9f17fe6 100644 --- a/includes/class-wc-geo-ip.php +++ b/includes/class-wc-geo-ip.php @@ -1468,7 +1468,7 @@ class WC_Geo_IP { 2 * $this->record_length ); } else { - if ( 0 == fseek( $this->filehandle, 2 * $this->record_length * $offset, SEEK_SET ) ) { + if ( 0 != fseek( $this->filehandle, 2 * $this->record_length * $offset, SEEK_SET ) ) { $this->log( 'GeoIP API: fseek failed' ); break; } @@ -1525,7 +1525,7 @@ class WC_Geo_IP { 2 * $this->record_length ); } else { - if ( 0 == fseek( $this->filehandle, 2 * $this->record_length * $offset, SEEK_SET ) ) { + if ( 0 != fseek( $this->filehandle, 2 * $this->record_length * $offset, SEEK_SET ) ) { $this->log( 'GeoIP API: fseek failed' ); break; }