diff options
author | Stefan Giehl <stefan@matomo.org> | 2022-02-03 23:32:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-03 23:32:26 +0300 |
commit | f870e36a8993f91fcb5b5fd814c3fe6efbfd2690 (patch) | |
tree | e92c955161614293d8fa667ffc5104734172dd4c /plugins | |
parent | 7926f6669b5972900e00e074abf25a0a169712d6 (diff) |
Fix invalid parameter handling for PHP 8 in API.getBulkRequest (#18734)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/API/API.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/API/API.php b/plugins/API/API.php index 743cdfd12f..4795fc69d7 100644 --- a/plugins/API/API.php +++ b/plugins/API/API.php @@ -456,7 +456,7 @@ class API extends \Piwik\Plugin\API */ public function getBulkRequest($urls) { - if (empty($urls)) { + if (empty($urls) || !is_array($urls)) { return array(); } |