summaryrefslogtreecommitdiffstats
path: root/modules-available
diff options
context:
space:
mode:
authorSimon Rettberg2024-07-03 17:17:43 +0200
committerSimon Rettberg2024-07-03 17:17:43 +0200
commitc70e1f8012ac47baa243d3032846e832c26e9bc4 (patch)
tree0405e01a3f0ac1bb714030476feeee943ae98ae9 /modules-available
parent[statistics_reporting] Fix infinite loop (diff)
downloadslx-admin-c70e1f8012ac47baa243d3032846e832c26e9bc4.tar.gz
slx-admin-c70e1f8012ac47baa243d3032846e832c26e9bc4.tar.xz
slx-admin-c70e1f8012ac47baa243d3032846e832c26e9bc4.zip
[statistics_reporting] Error checking
Diffstat (limited to 'modules-available')
-rw-r--r--modules-available/statistics_reporting/page.inc.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules-available/statistics_reporting/page.inc.php b/modules-available/statistics_reporting/page.inc.php
index ec4bbf1a..2a0f5823 100644
--- a/modules-available/statistics_reporting/page.inc.php
+++ b/modules-available/statistics_reporting/page.inc.php
@@ -287,7 +287,7 @@ class Page_Statistics_Reporting extends Page
}
}
- private function fetchData(int $flags)
+ private function fetchData(int $flags): array
{
// TODO: Make all modes location-aware, filter while querying, not after
switch ($this->type) {
@@ -327,8 +327,9 @@ class Page_Statistics_Reporting extends Page
return GetData::perUser($flags);
case 'vm':
return GetData::perVM($flags);
+ default:
+ ErrorHandler::traceError('Unexpected value');
}
- return false;
}
}