From 945202230726af76582103680fa4c49114670752 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Sun, 7 Apr 2019 11:33:45 +0200 Subject: [PATCH] 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 --- contrib/IXR/IXR_Library.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/IXR/IXR_Library.php b/contrib/IXR/IXR_Library.php index f71a486cb..1a6e3ebe3 100644 --- a/contrib/IXR/IXR_Library.php +++ b/contrib/IXR/IXR_Library.php @@ -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]; }