diff --git a/openid.php b/openid.php index b9c80cd..0331d35 100644 --- a/openid.php +++ b/openid.php @@ -154,7 +154,7 @@ function hostExists($url) return !!gethostbynamel($server); } - protected function request_curl($url, $method='GET', $params=array(), $update_claimed_id) + protected function request_curl($url, $method='GET', $params=array(), $update_claimed_id=false) { $params = http_build_query($params, '', '&'); $curl = curl_init($url . ($method == 'GET' && $params ? '?' . $params : '')); @@ -262,7 +262,7 @@ protected function parse_header_array($array, $update_claimed_id) return $headers; } - protected function request_streams($url, $method='GET', $params=array(), $update_claimed_id) + protected function request_streams($url, $method='GET', $params=array(), $update_claimed_id=false) { if(!$this->hostExists($url)) { throw new ErrorException("Could not connect to $url.", 404);