Skip to content

Commit

Permalink
fix http_build_query(): Passing null to parameter #2 ($numeric_prefix…
Browse files Browse the repository at this point in the history
…) of type string is deprecated
  • Loading branch information
noxtras authored and ikkez committed Mar 6, 2024
1 parent 6646844 commit 2a94440
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/oauth2.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class OAuth2 extends \Magic {
**/
function uri($endpoint,$query=TRUE) {
return $endpoint.($query?('?'.
http_build_query($this->args,null,'&',$this->enc_type)):'');
http_build_query($this->args,'','&',$this->enc_type)):'');
}

/**
Expand All @@ -53,7 +53,7 @@ function request($uri,$method,$token=NULL) {
$web=\Web::instance();
$options=[
'method'=>$method,
'content'=>http_build_query($this->args,null,'&',$this->enc_type),
'content'=>http_build_query($this->args,'','&',$this->enc_type),
'header'=>['Accept: application/json']
];
if ($token)
Expand Down

0 comments on commit 2a94440

Please sign in to comment.