diff options
-rw-r--r-- | inc/HTTPClient.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/HTTPClient.php b/inc/HTTPClient.php index aaded04ae..6c8de7328 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; } |