xmlrpc, php7.2 migration, Warning: count(): Parameter must be. checking for an array should be enough here, other types aren't supported. closes https://github.com/opnsense/core/issues/3390
This commit is contained in:
parent
efa7d6d3fe
commit
9452022307
|
@ -417,7 +417,7 @@ EOD;
|
|||
$method = $this->callbacks[$methodname];
|
||||
|
||||
// Perform the callback and send the response
|
||||
if (count($args) == 1) {
|
||||
if (is_array($args) && count($args) == 1) {
|
||||
// If only one paramater just send that instead of the whole array
|
||||
$args = $args[0];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue