summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/pages
diff options
context:
space:
mode:
authorSimon Rettberg2022-11-11 15:06:10 +0100
committerSimon Rettberg2022-11-11 15:06:10 +0100
commit6dd159b77442429ac0ac2a46ed8cd5152c1a8b24 (patch)
treeb5a1ebffdb714fda21161058c2647527b798dd34 /modules-available/statistics/pages
parent[statistics] Add placeholder to filters (diff)
downloadslx-admin-6dd159b77442429ac0ac2a46ed8cd5152c1a8b24.tar.gz
slx-admin-6dd159b77442429ac0ac2a46ed8cd5152c1a8b24.tar.xz
slx-admin-6dd159b77442429ac0ac2a46ed8cd5152c1a8b24.zip
[statistics] Client list: Add option to hide columns
Diffstat (limited to 'modules-available/statistics/pages')
-rw-r--r--modules-available/statistics/pages/machine.inc.php4
-rw-r--r--modules-available/statistics/pages/summary.inc.php3
2 files changed, 6 insertions, 1 deletions
diff --git a/modules-available/statistics/pages/machine.inc.php b/modules-available/statistics/pages/machine.inc.php
index 1e00b8f2..e72b96c8 100644
--- a/modules-available/statistics/pages/machine.inc.php
+++ b/modules-available/statistics/pages/machine.inc.php
@@ -5,7 +5,9 @@ class SubPage
public static function doPreprocess()
{
-
+ if (!Module::isAvailable('js_chart')) {
+ ErrorHandler::traceError('js_chart not available');
+ }
}
public static function doRender()
diff --git a/modules-available/statistics/pages/summary.inc.php b/modules-available/statistics/pages/summary.inc.php
index 1fa3adf2..cf3e745d 100644
--- a/modules-available/statistics/pages/summary.inc.php
+++ b/modules-available/statistics/pages/summary.inc.php
@@ -8,6 +8,9 @@ class SubPage
public static function doPreprocess()
{
User::assertPermission('view.summary');
+ if (!Module::isAvailable('js_chart')) {
+ ErrorHandler::traceError('js_chart not available');
+ }
}
public static function doRender()