diff options
author | Stefan Giehl <stefan@matomo.org> | 2021-11-24 22:37:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-24 22:37:11 +0300 |
commit | af4d6002ca0039f4ea702aa8456f7e0c1cc3746c (patch) | |
tree | a4eff4aee35b5decb9fac3e6e9ddcf525fcea841 /plugins/Goals | |
parent | 6ddf4edf640b3ccb4f8a7a5797d2762bab1ea682 (diff) |
Further improvements for PHP 8.1 (#18330)
* Fix some PHP8.1 deprecation warnings
* another fix
* couple more fixes
* couple more fixes
* fix another warning
Diffstat (limited to 'plugins/Goals')
-rw-r--r-- | plugins/Goals/Archiver.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/Goals/Archiver.php b/plugins/Goals/Archiver.php index 195e63bb66..5f38530c42 100644 --- a/plugins/Goals/Archiver.php +++ b/plugins/Goals/Archiver.php @@ -373,7 +373,10 @@ class Archiver extends \Piwik\Plugin\Archiver } unset($row['label']); - $row['avg_price_viewed'] = round($row['avg_price_viewed'], GoalManager::REVENUE_PRECISION); + + if (isset($row['avg_price_viewed'])) { + $row['avg_price_viewed'] = round($row['avg_price_viewed'], GoalManager::REVENUE_PRECISION); + } // add views to all types foreach ($array as $ecommerceType => $dataArray) { |