From: Roland Haeder Date: Sat, 4 Jul 2015 14:29:29 +0000 (+0200) Subject: Backward-compatiblity hack for PHP 5.4 installations. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=81760b7f0c819341c3bfc3027d085b65edd81300;p=quix0rs-gnu-social.git Backward-compatiblity hack for PHP 5.4 installations. Signed-off-by: Roland Haeder --- diff --git a/lib/httpclient.php b/lib/httpclient.php index 184b2c2e13..b02952e707 100644 --- a/lib/httpclient.php +++ b/lib/httpclient.php @@ -269,13 +269,16 @@ class HTTPClient extends HTTP_Request2 $this->config['follow_redirects'] = $follow_redirects; return $this->doRequest($url, self::METHOD_HEAD, $headers); } catch (Exception $e) { - // Let the exception go on its merry way. - throw $e; - } finally { // reset to the old value $this->config['follow_redirects'] = $old_follow; + + // Let the exception go on its merry way. + throw $e; } //we've either returned or thrown exception here + + // reset to the old value + $this->config['follow_redirects'] = $old_follow; } /**