Permalink
Browse files

moved statement after check for scheme/host

  • Loading branch information...
1 parent 63a5476 commit babd6272c23856403281fd90ef72dfa921ac5a42 Dan Fellars committed Jul 20, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 net/socket/Curl.php
View
@@ -60,12 +60,12 @@ public function open(array $options = array()) {
parent::open($options);
$config = $this->_config;
- if (!empty($config['options'])){
- $this->set($config['options']);
- }
if (empty($config['scheme']) || empty($config['host'])) {
return false;
}
+ if (!empty($config['options'])){
+ $this->set($config['options']);
+ }
$url = "{$config['scheme']}://{$config['host']}";
$this->_resource = curl_init($url);

0 comments on commit babd627

Please sign in to comment.