diff --git a/inc/HTTPClient.php b/inc/HTTPClient.php index aaded04aefc2e0e6b8445a1662371c4f1d3bef0d..6c8de73287611c1730bde87f40e4445f6b7712d6 100644 --- a/inc/HTTPClient.php +++ b/inc/HTTPClient.php @@ -249,7 +249,7 @@ class HTTPClient { // handle headers and cookies $this->resp_headers = $this->_parseHeaders($r_headers); if(isset($this->resp_headers['set-cookie'])){ - foreach ($this->resp_headers['set-cookie'] as $c){ + foreach ((array) $this->resp_headers['set-cookie'] as $c){ list($key, $value, $foo) = split('=', $cookie); $this->cookies[$key] = $value; }