diff options
author | Simon Rettberg | 2024-07-03 17:17:43 +0200 |
---|---|---|
committer | Simon Rettberg | 2024-07-03 17:17:43 +0200 |
commit | c70e1f8012ac47baa243d3032846e832c26e9bc4 (patch) | |
tree | 0405e01a3f0ac1bb714030476feeee943ae98ae9 | |
parent | [statistics_reporting] Fix infinite loop (diff) | |
download | slx-admin-c70e1f8012ac47baa243d3032846e832c26e9bc4.tar.gz slx-admin-c70e1f8012ac47baa243d3032846e832c26e9bc4.tar.xz slx-admin-c70e1f8012ac47baa243d3032846e832c26e9bc4.zip |
[statistics_reporting] Error checking
-rw-r--r-- | modules-available/statistics_reporting/page.inc.php | 5 |
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; } } |