Tweak gzread

This commit is contained in:
Mike Jolley 2015-07-15 16:34:13 +01:00
parent 9408364bb5
commit afbfd2b913
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ class WC_Geolocation {
$handle = @fopen( self::get_local_database_path( $tmp_database_version ), 'w' );
if ( $gzhandle && $handle ) {
while ( ( $string = gzread( $gzhandle, 4096 ) ) != false ) {
while ( $string = gzread( $gzhandle, 4096 ) ) {
fwrite( $handle, $string, strlen( $string ) );
}
gzclose( $gzhandle );