Fixed fseek check in WC_Geo_IP class

This commit is contained in:
Claudio Sanches 2015-11-09 22:03:22 -02:00
parent ced46ad92b
commit 98abbf0184
1 changed files with 2 additions and 2 deletions

View File

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