Skip to content
This repository was archived by the owner on Jun 20, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions openid.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 : ''));
Expand Down Expand Up @@ -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);
Expand Down