Fix warning
This commit is contained in:
parent
5ae358d5b5
commit
9e2e6eea92
1 changed files with 2 additions and 2 deletions
|
|
@ -135,7 +135,7 @@ function getURLContent($url, $postorget = 'GET', $param = '', $followlocation =
|
|||
$array_param = null;
|
||||
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PUT'); // HTTP request is 'PUT'
|
||||
if (!is_array($param)) {
|
||||
parse_str($param, $array_param);
|
||||
parse_str($param, $array_param); // @phan-suppress-current-line PhanPluginConstantVariableNull
|
||||
} else {
|
||||
dol_syslog("parameter param must be a string", LOG_WARNING);
|
||||
$array_param = $param;
|
||||
|
|
@ -148,7 +148,7 @@ function getURLContent($url, $postorget = 'GET', $param = '', $followlocation =
|
|||
$array_param = null;
|
||||
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PATCH'); // RFC 5789
|
||||
if (!is_array($param)) {
|
||||
parse_str($param, $array_param);
|
||||
parse_str($param, $array_param); // @phan-suppress-current-line PhanPluginConstantVariableNull
|
||||
} else {
|
||||
dol_syslog("parameter param must be a string", LOG_WARNING);
|
||||
$array_param = $param;
|
||||
|
|
|
|||
Loading…
Reference in a new issue