Skip to content

Commit

Permalink
Merge pull request #57 from matomo-org/avoidrecurssion
Browse files Browse the repository at this point in the history
Avoid recursion in API calls
  • Loading branch information
snake14 authored Jan 9, 2025
2 parents fbe3e8b + 425b3a2 commit 2ec5b35
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions API.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ public function getTreemapData(
$availableHeight = false,
$show_evolution_values = false
) {
if (trim($apiMethod) === 'TreemapVisualization.getTreemapData') {
return [];
}

if (
$period == 'range'
|| Common::getRequestVar('idSubtable', false)
Expand Down

0 comments on commit 2ec5b35

Please sign in to comment.