summaryrefslogtreecommitdiffstats
path: root/apis
diff options
context:
space:
mode:
authorSimon Rettberg2021-03-25 14:33:38 +0100
committerSimon Rettberg2021-03-25 14:33:38 +0100
commit5918ff8d0ddbaf5b7086bd051f2786ceb1ed6065 (patch)
treec265dd52f2ac078e5ab288fdf3220d469c702fee /apis
parent[remoteaccess] Show plugin version (diff)
downloadslx-admin-5918ff8d0ddbaf5b7086bd051f2786ceb1ed6065.tar.gz
slx-admin-5918ff8d0ddbaf5b7086bd051f2786ceb1ed6065.tar.xz
slx-admin-5918ff8d0ddbaf5b7086bd051f2786ceb1ed6065.zip
Fix deprecated curly braces string indexing (PHP 7.4)
Diffstat (limited to 'apis')
-rw-r--r--apis/clientlog.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apis/clientlog.inc.php b/apis/clientlog.inc.php
index b68e4632..29838dfc 100644
--- a/apis/clientlog.inc.php
+++ b/apis/clientlog.inc.php
@@ -9,7 +9,7 @@
if (empty($_POST['type'])) die('Missing options.');
$type = mb_strtolower($_POST['type']);
-if ($type{0} === '~' || $type{0} === '.') {
+if ($type[0] === '~' || $type[0] === '.') {
if (Module::isAvailable('statistics')) {
require 'modules/statistics/api.inc.php';
}