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:
Ad Schellevis 2019-04-07 11:33:45 +02:00
parent efa7d6d3fe
commit 9452022307
1 changed files with 1 additions and 1 deletions

View File

@ -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];
}