summaryrefslogtreecommitdiffstats
path: root/apis
diff options
context:
space:
mode:
Diffstat (limited to 'apis')
-rw-r--r--apis/clientlog.inc.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/apis/clientlog.inc.php b/apis/clientlog.inc.php
index 81a7dbf7..b68e4632 100644
--- a/apis/clientlog.inc.php
+++ b/apis/clientlog.inc.php
@@ -10,7 +10,11 @@ if (empty($_POST['type'])) die('Missing options.');
$type = mb_strtolower($_POST['type']);
if ($type{0} === '~' || $type{0} === '.') {
- require 'modules/statistics/api.inc.php';
+ if (Module::isAvailable('statistics')) {
+ require 'modules/statistics/api.inc.php';
+ }
} else {
- require 'modules/syslog/api.inc.php';
+ if (Module::isAvailable('syslog')) {
+ require 'modules/syslog/api.inc.php';
+ }
}