Skip to content

Commit 2ec5b35

Browse files
authored
Merge pull request #57 from matomo-org/avoidrecurssion
Avoid recursion in API calls
2 parents fbe3e8b + 425b3a2 commit 2ec5b35

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

API.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ public function getTreemapData(
4848
$availableHeight = false,
4949
$show_evolution_values = false
5050
) {
51+
if (trim($apiMethod) === 'TreemapVisualization.getTreemapData') {
52+
return [];
53+
}
54+
5155
if (
5256
$period == 'range'
5357
|| Common::getRequestVar('idSubtable', false)

0 commit comments

Comments
 (0)