buscapedev/buscape-php — pull request #2 by tankist (2012-07-12 09:32:58+00:00)
Title: Undefined variable in the _getContent method

```php
if ( $this->_environment == 'bws' && ( isset( $_SERVER[ 'REMOTE_ADDR' ] ) || ( $xip = isset( $_SERVER[ 'HTTP_X_IP' ] ) ) != false ) ) {
$args[ 'clientIp' ] = preg_replace( '/[^0-9., ]/' , '' , $_SERVER[ $xip ? 'HTTP_X_IP' : 'REMOTE_ADDR' ] );
}
```
$xip is undefined when first 'if' condition is true